bitrise-steplib / steps-google-play-deploy

MIT License
54 stars 38 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 7 months ago

jt-gilkeson commented 7 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 7 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 4 months 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 4 months ago

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

aliyanlatif commented 2 months ago

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

jt-gilkeson commented 2 months 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.

PawelPalaczX commented 1 day ago

Just a pro tip for speeding up the work.

  1. Create a new workflow using on that fails and remove sep with distribution.
  2. Add step with Deploy to Bitrise.io so you have the apk build After uploading apk manually just remove newly created workflow