NathanaelA / nativescript-permissions

Wraps up the entire Android 6 permissions system in a easy to use plugin.
MIT License
46 stars 22 forks source link

hasPermission function returns always false #42

Closed standevo closed 4 years ago

standevo commented 5 years ago

permissions.hasPermission(android.Manifest.permission.WRITE_SETTINGS) returns always false even if the permission was granted before

NathanaelA commented 5 years ago

What OS is this on?

standevo commented 5 years ago

@NathanaelA, Hi, I have this problem on Android (simulator & device)

NathanaelA commented 5 years ago

Can you try the demo and see what happens?

standevo commented 5 years ago

Demo doesn't use any hasPermission method only request

NathanaelA commented 4 years ago

I just realized you asked about the WRITE_SETTINGS -- that is a WEIRD special permission. Checking the code hasPermission does not have the code in it to check for it...

NathanaelA commented 4 years ago

This has been fixed in v1.3.9 and the demo has been updated to show and use hasPermission