plugins
plugins copied to clipboard
[@nativescript/background-http] Android SDK 34 and FOREGROUND_SERVICE_DATA_SYNC permission
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?
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.
news?
We're using it for our form-data request, because of this issue we had to switch to nativescript-http-formdata
There is a work around posted in the discord. https://discord.com/channels/603595811204366337/1260270624677302365/1262435301666848830