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

Android 6.0 Issues #5

Open
thari911 opened this issue Feb 15, 2016 · 12 comments
Open

Android 6.0 Issues #5

thari911 opened this issue Feb 15, 2016 · 12 comments

Comments

@thari911
Copy link

Hey. This plugin is not working on Android 6.0 because of permission issues i guess. Can you please fix this or help me fix my problem.

Thank you.

@davide-redooc
Copy link

i think is not a problem of permission. i checked it and there is permission.

@thari911
Copy link
Author

It was working fine prior to Android 6.0 after android 6.0 it's not showing
the device accounts.

Regards,

Tharindu Gamage
On Feb 16, 2016 6:58 PM, "davide-redooc" [email protected] wrote:

i think is not a problem of permission. i checked it and there is
permission.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@pbakondy
Copy link

@davide-redooc in Android 6.0 (API level 23) the permission handling has changed.

GET_ACCOUNTS considered as "Dangerous Permission".

Further readings:

@thari911
Copy link
Author

So no more device access to accounts possible?

Regards,

Tharindu Gamage
On Feb 16, 2016 8:10 PM, "Peter Bakondy" [email protected] wrote:

@davide-redooc https://github.com/davide-redooc in Android 6.0 (API
level 23) the permission handling has changed.

GET_ACCOUNTS considered as "Dangerous Permission".

Further readings:


Reply to this email directly or view it on GitHub
#5 (comment)
.

@pbakondy
Copy link

The app should ask the user to access the contact list.

When you call ActivityCompat.requestPermissions() the phone will display a new popup to confirm the access.

@davide-redooc
Copy link

but it's an android component how can i access on to this element with cordova-ionic?

@loicknuchel
Copy link
Owner

A ionic app is just some JS. You can call APIs described in README after the ready event.

@mohamedRhaiem
Copy link

you can resolve this by changing the sdk version of android in the manifest file from 23 to 22 as below

but I didn't recommend this plugin for production environment.

@loicknuchel
Copy link
Owner

Hi @mohamedRhaiem, any PR is welcome :)

@actechllc
Copy link

using Ionic on IOS 6.0 still not working well.
Is there a solution or a workaround or the permissions issue is blocking the plugin functionality?

Thanks

@loicknuchel
Copy link
Owner

Hi @asafco4, this plugin does not support iOS...
For Android 6, they changed the permission system so this plugin doesn't seems to work well.
I don't have time to fix it but any PR is welcome :)

@nagygergo
Copy link

I will send a PR sometime in the weekend, but for the time anyone trying to use this plugin, or any other cordova plugin that is not updated to SDK 23, I suggest this cordova plugin. It has quite a big overhead, but you can request runtime permissions with it, so if you call ask for one before using this plugin, it will work fine.

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

7 participants