nativescript-community / nativescript-health-data

Cross platform Health Plugin for NativeScript, using Apple HealthKit and Google Fit
Apache License 2.0
48 stars 17 forks source link

Not Autheried Issue in android #36

Open prakashksp20 opened 4 years ago

prakashksp20 commented 4 years ago

not autherized how to solve it?

Screenshot_1574926382

DonsWayo commented 4 years ago

For new android version q, you need to add new permission

if (android.os.Build.VERSION.SDK_INT >= 28) { permissions.push(android.Manifest.permission.ACTIVITY_RECOGNITION); }

onthe plugin android manifiest

<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION"/>

you need to add the plugin from github, npm version not work