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

Can't request permission ACTIVITY_RECOGNITION #26

Closed surdu closed 7 years ago

surdu commented 7 years ago

I'm trying to request permission for com.google.android.gms.permission.ACTIVITY_RECOGNITION but when I write this

permissions.requestPermission(com.google.android.gms.permission.ACTIVITY_RECOGNITION, "bla")
.then(function() {
    // ...
});

I get the error: Cannot read property ACTIVITY_RECOGNITION of undefined

NathanaelA commented 7 years ago

I do not believe this permission is one you need to do at runtime. You only need to add it to the Manifest for compile time permission.