-
Notifications
You must be signed in to change notification settings - Fork 67
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
permission issue on android X #170
Comments
The plugin is targeting Android 13, so you might need to use older version of the plugin, IDK. |
Thanks for getting back:) that seldom happens hehe Idk either I added a permission plugin for cordova I dont think that helped, I think the below manifest entry did the job: //this was already there...auto added by cordova /build |
If it helped then that's great! |
I'm having the same issue, did you solve it already @dpsa-dev ? I've tried asking for the permission before starting the service but it's not working /edit nevermind I now see your comment about the added permission in the manifest. This also did the trick for me |
I had to install a extra Cordova plugin in the end that was the only way to get it going: and the below Hope it helps
|
In the end I had to do both the fixes above for it to work, when the permission plugin code is executed it should pop up a window on the app asking for activity permission, Unless android 13 has new changes but I had the same general error message that permission missing |
To add extra line to manifest it's better to use config.xml like so:
|
I added it in the manifest file, just underneath the existing one which is |
Hi there
And thanks for the plugin and your time
The plugin is working pretty great on my Android 9 device,
but when I want to test on my other device with Android 11 it crashes when calling the start function and I see the below
java.lang.SecurityException: Activity detection usage requires the ACTIVITY_RECOGNITION permission
To reproduce:
Install on device with Android 11
Run the start() function
Used on a Cordova version 12 app with
I have found online the following solution which makes the error go away but location tracking not starting as expect
--also this additonal code makes the code stop working on device 1 with Android 9
changed to
The text was updated successfully, but these errors were encountered: