Dear Sirs,
after the upgrade to Android 9 I'm a problem with an app that worked very well before.
The app uses BLE communication accordingly to the thread BLE 2 - Bluetooth Low Energy
with information from post #1:
A new version of BLE_Example was uploaded. targetSdkVersion is now set to 26.
Setting the targetSdkVersion to 26 requires some changes:
1. Add the coarse location permission in the manifest editor.
2. Request this permission with RuntimePermissions.
The device used is a Samsung Galaxy S8+ below you'll find device info after the upgrade:
![Info_S8+.jpg Info_S8+.jpg](https://www.b4x.com/android/forum/data/attachments/71/71926-2a7aa155ebd6cdd0b69fcf7519048216.jpg)
Now the BLE scan and communication is available only if the user enable GPS device.
I tried with:
So is it possible to use BLE without enabling GPS or must I use some "permission wizardry" to solve the problem?
Best Regards
after the upgrade to Android 9 I'm a problem with an app that worked very well before.
The app uses BLE communication accordingly to the thread BLE 2 - Bluetooth Low Energy
with information from post #1:
A new version of BLE_Example was uploaded. targetSdkVersion is now set to 26.
Setting the targetSdkVersion to 26 requires some changes:
1. Add the coarse location permission in the manifest editor.
2. Request this permission with RuntimePermissions.
The device used is a Samsung Galaxy S8+ below you'll find device info after the upgrade:
![Info_S8+.jpg Info_S8+.jpg](https://www.b4x.com/android/forum/data/attachments/71/71926-2a7aa155ebd6cdd0b69fcf7519048216.jpg)
Now the BLE scan and communication is available only if the user enable GPS device.
I tried with:
- only coarse location permission enabled
- only fine location permission enabled
- both coarse and fine location permission enabled
So is it possible to use BLE without enabling GPS or must I use some "permission wizardry" to solve the problem?
Best Regards