-
Notifications
You must be signed in to change notification settings - Fork 32
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
Android: Permission denial reading #14
Comments
Building with AndroidStudio gave a better hint @firescript: Warning:The file: /home/mre/PROJECTS/test/node_modules/nativescript-contacts/platforms/android/AndroidManifest.xml is depricated, you can read more about what will be the expected plugin structure here: https://www.nativescript.org/blog/migrating-n-android-plugins-from-version-1.7-to-2.0 |
Hey @einicher , although CLI throws this warning, it is a false one, as it was decided to keep AndroidManifest for plugins. You can read more here. Have you installed the plugin using
|
i did several times.
same outcome, it shows me the contact selection dialog, but when i pick a contact i get the permission denied exception. |
is it possible it has something to with
i suddenly have to do this everytime i start a new project or else i get the error “app.js not found” |
It's this android 6?
|
@sitefinitysteve |
Can you try this? https://www.npmjs.com/package/nativescript-permissions
|
@sitefinitysteve “Woo Hoo, I have the power” |
I'll see what i can do, or at least document it
|
You'll need a Runtime permission. if( getApplicationContext().checkSelfPermission( Manifest.permission.READ_CONTACTS ) != PackageManager.PERMISSION_GRANTED ) only then after the approval you will be able to query the contacts phone number/name etc. |
Docs have been updated to avoid this issue. |
I still get this error. Can you please paste an working example to explain this? |
Hi,
on my android testphone - were it worked until now - i get this exception:
Permissions are not added to AndroidManifest.xml, if i add them by hand i still get the same error.
Also tried these suggstions: http://stackoverflow.com/questions/8104776/permission-read-contacts-does-not-seem-to-work - no success
Any hints?
The text was updated successfully, but these errors were encountered: