Hi,
I need GPS also in background, when the app sleeps (as most users will do or so I think).
In https://www.b4x.com/android/forum/threads/background-location-tracking-and-android-10.123355/ I read that I have to add the line
SetServiceAttribute(Tracker, android:foregroundServiceType, "location")
to the manifest.
When I do this, I see "module tracker not found".
Ths is the whole manifest
I need GPS also in background, when the app sleeps (as most users will do or so I think).
In https://www.b4x.com/android/forum/threads/background-location-tracking-and-android-10.123355/ I read that I have to add the line
SetServiceAttribute(Tracker, android:foregroundServiceType, "location")
to the manifest.
When I do this, I see "module tracker not found".
Ths is the whole manifest
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
AddManifestText(<uses-feature android:name="android.hardware.location.gps"/>)
' aus dem forum
SetServiceAttribute(Tracker, android:foregroundServiceType, "location")