Skip to content
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

[@nativescript/background-http] Android SDK 34 and FOREGROUND_SERVICE_DATA_SYNC permission #593

Open
gdsoftdev opened this issue Jul 18, 2024 · 1 comment

Comments

@gdsoftdev
Copy link

Hi,

I 've been using background-http plugin for years and it works great to upload photos taken with app on application server with an api.
In accordance with google's request to update my application on the play store, I had to target android 34. Now when I want to publish my application, it tells me that I have to justify why and how I use the permission FOREGROUND_SERVICE_DATA_SYNC with a video.
I noticed that this permission was requested by net.gotev:uploadservice:4.9.2 which is a dependency of the background-http plugin.
Do you have a solution?

@meeshkabob
Copy link

This has impacted our project as well. In gotenv Issue 660, it's explained that their current implementation would need major rework in order to remove the need for permission FOREGROUND_SERVICE_DATA_SYNC.

Seems that folks have had luck with declaring the permission in Google Play with a video of the UI feature demonstrating how the permission is used. (In our case, uploading images selected via @nativescript/image-picker.)

However, a code-based workaround would be preferable, since continuing to depend on gotenv via @nativescript/background-http poses a risk to apps being published to Play Store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants