-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FOREGROUND_SERVICE_HEALTH #1953
Comments
Yes. The plugin uses the Motion API (which comes under the umbrella of "Health") in order to automatically toggle location-tracking when the device is determined to be moving / stationary. |
@irvinsingGitHub Mine is also getting rejected, did you manage to solve it? |
You have to record a video and explain to Play Store that your app uses the "Activity Transition API" to automatically track location when the device is detected to be in-motion, in order to conserve battery power when the device is detected to be stationary". |
@christocracy Thank you. Another question, what should I show them in the video exactly (for the FOREGROUND_SERVICE_HEALTH permission)? I'm not showing a map or anything I'm just tracking the location of the user in the background, the app is for the company's drivers and it mainly tracks their location when moving |
I cannot say what you should show them. You need to record a video of your app and explain to them why you need to use the "Motion Transition API" to automatically trigger location tracking when devices are detected to be in-motion, and to turn off location-tracking when devices are detected to be stationary in order to conserve battery power. |
@hisothreed did you manage to get the permisson? |
@hisothreed I wasn't using the motion detector in our app. So i decided to remove that permission from the Android manifest, and ultimately didn't have to face the issue right now. |
@TNAJanssen Yes it was accepted |
@hiso3d what did you end up using as the reason and the notifing of the user? |
For years, this plugin has used the With Android 14, in order for So, when providing a reason for usage of
If you do remove the To remove <manifest>
<uses-permission
android:name="android.permission.FOREGROUND_SERVICE_HEALTH"
tools:node="remove" />
.
.
.
</manifest> Removing this permission will cause your app to have a longer delay initiating location-tracking. Where tracking might occur within a few meters of movement will now take at least 200 meters. |
@christocracy Is there way to optimise this. I've got reject from google. |
“Optimize” what? |
use WorkManger instead? or stop using health motion apis? |
You don’t understand what WorkManager is. Did you not read the comment above yours? |
Our app also started to be rejected although it was already in prod with the lib. I guess we could remove the permission from the manifest, although it would have an impact (although were just using Geofencing, i assume the precision will decrease) |
Did you read this? |
@christocracy i had, i edited my post with that info. We are trying to increase the precision of the data collected, this is a step back for us |
Then it’s up to you to follow the instructions requested by the Play Store and prove to them why you need that permission. |
Yes to be honest i just replied to increase awareness as we're already doing that :) |
I’m soon going to completely remove this permission from the plug-in, turning it from an opt-out to an opt-in. |
We got accepted with the reason @christocracy gave us. So when describing it correctly they do allow it |
@TNAJanssen we got rejected even with that reason |
For us what helped was a permission screen in between asking for permission where we state why we need the health permission. |
@TNAJanssen we have the "same" screen, we uploaded a video sending a user to that screen and from there asking for the permissions. Still denied. I think as usual with the stores, it really depends on who checks, theres no golden rule, you just got lucky |
Show us your video. |
@christocracy I am sorry if I confused you. What I meant was if by any chance this library could be optimised or bypass the health motion related APIs. |
Did you read this? |
i did this... but the app is still asking for health permissions.. |
See API docs |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
We're facing the same issue, it seems like this library using |
See the CHANGELOG |
We're using the latest module version |
What “error”, specifically? |
|
Read my blog, log in to Play Store Console and provide the required information as documented in my blog. |
Thanks, i was finally been able to declare the Foreground permissions in play store and resolved my issues |
Your Environment
react-native -v
): 72.6Expected Behavior
FOREGROUND_SERVICE_LOCATION was identified when uploading bundle to Google Play Console.
Actual Behavior
"Your app uses the following undeclared foreground service permissions...
FOREGROUND_SERVICE_HEALTH
FOREGROUND_SERVICE_LOCATION..."
I'm guessing FOREGROUND_SERVICE_HEALTH was required by your plugin?
Google is requesting an explanation for have that in the app.
So that I know how to answer them, could you please explain the reason for having FOREGROUND_SERVICE_HEALTH in the plugin?
Steps to Reproduce
Not relevant.
Context
Upload Android bundle to Google Play store.
Debug logs
Not relevant
The text was updated successfully, but these errors were encountered: