I installed my app on a phone with a later version of Android.
One of the plugins i use lets me turn bluetooth on and off from within the app. On this phone i am trying now, i get a message that automatically pops up when i try to turn bluetooth on initially.
( )
Without user interaction, the phone will not turn bluetooth on.
Is there a way to stop these messages popping up?
This is a function of the plugin you are using, not PhoneGap or AppStudio. You might want to contact the developer of the plugin to see what is going on.
No. You can’t disable those messages. They’re from the OS and prevent developers from accessing services without the users permission. Native apps like FB are getting hammered in iOS 13 because they’ve been stealing user data.
For my application, it’s important that user interaction is not required to control the bluetooth state.
I found a solution. I enabled Developer Options, and in the Apps section, there is a setting called Disable Permission Monitoring. I turned this on, and now the user interaction is not required.