How to do this?If you don't need to obtain the user's location in the background, then remove that ability from your app.
If FusedLocationProvider1.IsInitialized And FusedLocationProvider1.IsConnected Then FusedLocationProvider1.Disconnect
I've tried this several times, but Google didn't accepted my explanation (rejected each time) and finally removed the application today.But if you need background location tracking, then you need to do two things:
1) Log into your google developer account and look for a way to "successfully complete a console-based declaration process" which will probably be some form you need to fill out to explain to google why you need background location access.
The user is never asked for background location permission, as I my application does not require this.2) You need to display something in the app (when the user gives permission for background location) and describe in detail why you need background location permission.
Nothing in the manifest file related to FusedLocation.1) See if there is any entries in the manifest that are requesting background permission
All the code containing FusedLocation is in the Main module, nothing in the services.2) If you have any code related to the fused-location lib in a "service", then move all of that code into an "activity" so that it is impossible for it to run in the background (because services can run in the background).
Hopefully their automated "scanner" won't find your free versionAnother interesting thing is that the app was published in two versions: one free, with some limitations and a Pro version. All the code related to FusedLocation is identical in both version (double checked again today) , but only the Pro version was removed by Google. I'm totally confused.
As I cannot copy everything, just a single line, this is the screenshotAfter you compile your app, click the "List Permissions" button on the "Log" tab of the IDE and paste the contents of that dialog.
Only "While using the app", "Only this time" and "Deny".Also, when your app asks the user for location permission, does the pop-up dialog have three choices, with one because "Allow app to always access location"?
RemovePermission(android.permission.ACCESS_COURSE_UPDATES)
RemovePermission(android.permission.ACCESS_COURSE_LOCATION)
Checked the link, but there is stated:this topic was said earlier, because google rejects background tracking.
see:
Background Location/Tracking and Android 10+
Hello community, In this (https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#content) thread, @Erel talks about the new implementation of GPS background tracking and Android 10+, which requires the line SetServiceAttribute(Tracker, android:foregroundServiceType...www.b4x.com
RemovePermission(android.permission.ACCESS_BACKGROUND_LOCATION)
Today Google decided to remove one of my applications from Play Store for the following reason:
"Your app requests location in the background for either unapproved and/or undisclosed purposes. Apps that request location in the background must successfully complete a console-based declaration process and adequately disclose use to users."
I'm using FusedLocationProvider for a few years already to get location information in order to calculate distance to my correspondent during a ham radio call.
Any recommendation on how to prevent this mechanism working in the background?
Thank you.
All apps that access location in the background must be approved; otherwise, updates may be blocked and the app may be removed from Google Play.
All apps that access location in the background must be approved; otherwise, updates may be blocked and the app may be removed from Google Play.
RemovePermission(android.permission.ACCESS_BACKGROUND_LOCATION)
testI think I was not very clear. My app does not need to access location in the background. My question was what is causing this as nothing in my code is specifically requesting this "dangerous" permission. I'm just using FusedLocationProvide library and requesting location services access for this purpose (nothing about background) and for Bluetooth discovery. And why two identical applications in the way location services are used (absolutely the same code) are treated differently by Google?
To resume, is enough to have the following in the manifest file to be sure that my app never request or use background location services?
B4X:RemovePermission(android.permission.ACCESS_BACKGROUND_LOCATION)
I don't want to try by pushing the app to Play Store and to wait for a feedback from Google.
To resume, is enough to have the following in the manifest file to be sure that my app never request or use background location services?
B4X:RemovePermission(android.permission.ACCESS_BACKGROUND_LOCATION)
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?