bitrise-steplib / steps-google-play-deploy

MIT License
54 stars 34 forks source link

Failed to commit edit, error: googleapi: Error 403: You must let us know whether your app uses any Foreground Service permissions., forbidden #163

Open jt-gilkeson opened 5 months ago

jt-gilkeson commented 5 months ago

Troubleshooting

Useful information

Issue description

We updated the radar library in our project. implementation 'io.radar:sdk:3.9.8' That library now: Adds FOREGROUND_SERVICE_LOCATION permission to Android manifest.

The bitrise step to deploy the build to the Play Store now fails with: Failed to commit edit, error: googleapi: Error 403: You must let us know whether your app uses any Foreground Service permissions., forbidden

If I manually add that permission to my manifest, it then gives two of these errors instead of one.

We've rolled back the library version so that we can deploy, but need guidance on how we can prevent this step from failing when we do update the library.

Bitrise info

Using mapping file from: /bitrise/deploy/app-mapping-20240404223738.txt
Using app from: /bitrise/deploy/app-release.aab
Configuration read successfully
Authenticating
Authenticated client created
Create new edit
 editID: 15281108605623137801
Edit insert created
Available tracks on Google Play:
- production
- beta
- alpha
- internal
Tracks listed
Upload apks or app bundles
Uploading /bitrise/deploy/app-release.aab 1/1
Uploaded app bundle version: 370
 uploaded mapping file for apk version: 370
Done uploading of 1 apps
New version codes to upload: 370
Applications uploaded
Update track
Release version codes are: [370]
Update listing started
Update listing finished
internal track will be updated.
 updated track: internal
Track updated
Committing edit
Failed to commit edit, error: googleapi: Error 403: You must let us know whether your app uses any Foreground Service permissions., forbidden
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | Google Play Deploy (Failed)                                   | 1.2 min |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-google-play-deploy/issues |
| Source: https://github.com/bitrise-io/steps-google-play-deploy               |
+---+---------------------------------------------------------------+----------+
  

Steps to reproduce

Add radar, try to submit a build to the store.

Caveat: The issue might be with Radar's SDK, I have an issue open with them too.

lpusok commented 5 months ago

You may try uploading your app manually on the UI of Google Play console and try to resolve any warnings there first. After that automated deploy could be continued.

bitrise-coresteps-bot commented 1 month ago

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

tsakmalis commented 1 month ago

Hi @jt-gilkeson , Have you found any solution in your problem?

aliyanlatif commented 3 days ago

Hi @jt-gilkeson @tsakmalis , have you guys found any solution for this?

jt-gilkeson commented 3 days ago

We had to upload manually. So basically I had to change our bitrise steps to create build on bitrise and then manually upload it to the play store, which then prompted for an explanation about the foreground service, which we were able to then submit a response bout how the foreground service was being used, then publish it. Then after that go back and change the bitrise flow to re-enable uploading to the play store for future builds. Kind of a pain, but fortunately you only have to do it once.