Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with permissions after install(app crash) #6

Open
Max87ZA opened this issue Jul 31, 2018 · 0 comments
Open

Error with permissions after install(app crash) #6

Max87ZA opened this issue Jul 31, 2018 · 0 comments

Comments

@Max87ZA
Copy link

Max87ZA commented Jul 31, 2018

Hello,
I have a problem - I require Ti.UDP in app.js, I have added manifest code and playservices correctly.
But when user deletes my app and installs new version, Ti.UDP throws error about missing permissions(FINE_LOCATION), even if I have FINE_LOCATION in tiapp.xml() and when app opens login window I request permissions from user(Ti.Android.requestPermissions(["android.permission.CALL_PHONE", "android.permission.READ_CONTACTS","android.permission.READ_EXTERNAL_STORAGE","android.permission.ACCESS_FINE_LOCATION","android.permission.ACCESS_COARSE_LOCATION", "android.permission.WRITE_EXTERNAL_STORAGE"], function(e){...});). App crashes(Application stopped and needs restart), when I start app second time, it runs normally.
I discovered, that if I enable all permissions after install(not immmediate launch) and then run app for first time, app doesn't crash and works normally.
I tried to put Tracker code inside loginWindow.addEventListener("open") and after requesting permissions, but no luck.
Please help me how to avoid this crashing uppon start.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant