Hi!
My app was working OK except in Android 10.
It has the mandatory location permission ACCESS_FINE_LOCATION because it must scan for Bluetooth devices.
There is a service that runs only when the SO is pairing with the Bluetooth device.
In Android 10 the service seems not to start. (no errors shown in the unfiltered log)
Things I have tried:
-Update to B4A v10
-Android sdk platform 29 and targetSdkVersion="29"
-As noted in the post https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#content added to the manifest this line:
(Changing the service name)
The results are the same.
The service don't start.
Some doubts now:
Must I add the manifest line somewhere specific position? Here: https://developer.android.com/preview/privacy/foreground-services says that it may be declared in the "service section" of the manifest. Is this relevant?
Is a notification mandatory?
My app was working OK except in Android 10.
It has the mandatory location permission ACCESS_FINE_LOCATION because it must scan for Bluetooth devices.
There is a service that runs only when the SO is pairing with the Bluetooth device.
In Android 10 the service seems not to start. (no errors shown in the unfiltered log)
Things I have tried:
-Update to B4A v10
-Android sdk platform 29 and targetSdkVersion="29"
-As noted in the post https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#content added to the manifest this line:
B4X:
SetServiceAttribute(Tracker, android:foregroundServiceType, "location")
The results are the same.
The service don't start.
Some doubts now:
Must I add the manifest line somewhere specific position? Here: https://developer.android.com/preview/privacy/foreground-services says that it may be declared in the "service section" of the manifest. Is this relevant?
Is a notification mandatory?