# App update rejected due to Foreground service permissions

**URL:** <https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026>\
**Category:** Android\
**Created:** [February 1, 2024, 4:39pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026 "2024-02-01T16:39:01Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [February 1, 2024, 4:39pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/1 "2024-02-01T16:39:01Z")

</div>

I am using the Meeting SDK (v5.17.1.18530) to create a custom UI app.

The app is built targeting SDK 34 (Android 14), so Google needs specific information about how the app uses foreground services.

Google rejected the latest app update because I need to provide more information about the foreground service.

> Violation:  
> Permissions for Foreground Services: Functionality is not initiated by or perceptible to the user
> 
> Details:  
> We found that one or more of the declared use cases is not compliant with how [foreground service permission](https://support.google.com/googleplay/android-developer/answer/13392821?hl=en&sjid=5928478178588015754-NA) is allowed to be used. Specifically, the user is not made aware of functionality requiring permission when active.
> 
> - Use of FGS is not perceptible to the user when performing Media Playback - Media Playback, Media Projection - Media and Content Projection and Streaming functionality.

Google is asking me for a video that shows how my application uses the following features in the foreground service.

android.permission.FOREGROUND\_SERVICE\_MEDIA\_PROJECTION  
android.permission.FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK

They are added to my app by Zoom Meeting SDK for ScreenShareServiceForSDK

Unfortunately, I do not use the Zoom sdk screen sharing feature in my application, so I cannot provide a video.

I have tried to remove FOREGROUND\_SERVICE\_MEDIA\_PROJECTION and FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK from my app manifest but in this case my app crashes on Android 14 due to SecurityException starting FGS with type mediaPlayback. It happens at the start of the Zoom meeting.

> Fatal Exception: java.lang.RuntimeException  
> Unable to create service com.zipow.videobox.share.ScreenShareServiceForSDK: java.lang.SecurityException: Starting FGS with type mediaPlayback callerApp=ProcessRecord{d0c5093 11843:my.app/u0a416} targetSDK=34 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK]

with the following callstack:

> Fatal Exception: java.lang.RuntimeException: Unable to create service com.zipow.videobox.share.ScreenShareServiceForSDK: java.lang.SecurityException: Starting FGS with type mediaPlayback callerApp=ProcessRecord{d0c5093 11843:my.app/u0a416} targetSDK=34 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK]  
> at android.app.ActivityThread.handleCreateService(ActivityThread.java:5111)  
> at android.app.ActivityThread.-$$Nest$mhandleCreateService()  
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2506)  
> at android.os.Handler.dispatchMessage(Handler.java:106)  
> at android.os.Looper.loopOnce(Looper.java:230)  
> at android.os.Looper.loop(Looper.java:319)  
> at android.app.ActivityThread.main(ActivityThread.java:8893)  
> at java.lang.reflect.Method.invoke(Method.java)  
> at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)  
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

How can I proceed?  
Can I configure the Zoom sdk for starting the Zoom meeting foreground service without the SERVICE\_MEDIA\_PROJECTION and MEDIA\_PLAYBACK types?

---

<div class="post-metadata">

**Author:** ![chirag.codealchemy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chirag.codealchemy/32/46406_2.png) [@chirag.codealchemy](https://devforum.zoom.us/u/chirag.codealchemy)\
**Post date:** [February 6, 2024, 5:25am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/2 "2024-02-06T05:25:48Z")

</div>

I facing same issue

 ![Screenshot 2024-02-05 at 12.03.05 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/f/9ff637122b729441fe40cb4af72cff0345be7fc2.png)

can some one please explain why need these permissions

---

<div class="post-metadata">

**Author:** ![junya1001](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@junya1001](https://devforum.zoom.us/u/junya1001)\
**Post date:** [February 7, 2024, 1:08am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/3 "2024-02-07T01:08:24Z")

</div>

Same issues here.  
We cannot update our App on Google Play Store because of the issue.  
Any work around?

---

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [February 9, 2024, 8:49am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/4 "2024-02-09T08:49:19Z")

</div>

I haven’t found a real workaround yet, but in the meantime I’ve rolled back my app to target SDK 33, but keep compiling SDK 34. This way, I can minimize the changes required to roll back to the previous version of the target SDK.

```auto
buildToolsVersion = '34.0.0'

compileSdk 34

targetSdk 33

```

This way I can bypass the foreground services check that is only required for Target SDK 34.

I am not sure, but it seems that the 5.17.x Meeting Zoom SDK is not really compatible with Target SDK 34, even though it has been declared Android 14 ready.

---

<div class="post-metadata">

**Author:** ![paul.mathew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/paul.mathew/32/53727_2.png) [@paul.mathew](https://devforum.zoom.us/u/paul.mathew)\
**Post date:** [February 19, 2024, 2:42pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/5 "2024-02-19T14:42:28Z")

</div>

I’m also facing the same issue  
but for videosdk

---

<div class="post-metadata">

**Author:** ![trinhcu18](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/trinhcu18/32/29582_2.png) [@trinhcu18](https://devforum.zoom.us/u/trinhcu18)\
**Post date:** [February 21, 2024, 3:50am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/6 "2024-02-21T03:50:20Z")

</div>

I had the same issue with meeting SDK. It would be nice if the Zoom team made a page that declares why Zoom SDKs use those permissions so I can explain it to the Google Play team. I had been rejected many times before with the same issues relevant to permissions required by Zoom SDK

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [February 22, 2024, 12:45am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/7 "2024-02-22T00:45:22Z")

</div>

Hi everyone,

Thanks for the post. These permissions are required for screen sharing and Bluetooth audio devices. Here is the explanation of each permission:

FOREGROUND\_SERVICE\_MICROPHONE : Allow the capability to receive audio when the app is put in the background

FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK: Allow the capability to share audio while screen sharing

FOREGROUND\_SERVICE\_MEDIA\_PROJECTION: Allow the capability to project the screen while screen sharing

FOREGROUND\_SERVICE\_CONNECTED\_DEVICE: Allow the capability to use Bluetooth device as the audio source

FOREGROUND\_SERVICE\_PHONE\_CALL: Allow the capability to use Bluetooth device for the meeting call

Hope this helps. Thank you!

---

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [February 22, 2024, 8:59am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/8 "2024-02-22T08:59:01Z")

</div>

Google asks me a video of my app using capability to share audio while screen sharing and a video of my app using capability to project the screen while screen sharing.

Unfortunately, my application does not implement (use) these features of the Zoom Meeting SDK, so I cannot provide a video showing how my application uses it in the foreground service.

These videos are required to publish an application targeting SDK 34.

How can I prevent the Zoom Meeting SDK from launching foreground services that use the following features?  
FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK  
FOREGROUND\_SERVICE\_MEDIA\_PROJECTION  
FOREGROUND\_SERVICE\_PHONE\_CALL

---

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [March 1, 2024, 10:21am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/9 "2024-03-01T10:21:27Z")

</div>

I see that a new version of Zoom Meeting SDK has just been released ( 5.17.10).

The release note says that it fixes some issues related to SDK34.  
[https://developers.zoom.us/changelog/meeting-sdk/android/5.17.10/](https://developers.zoom.us/changelog/meeting-sdk/android/5.17.10/)

Does it also fix this app publishing issue?

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [March 5, 2024, 1:19am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/10 "2024-03-05T01:19:35Z")

</div>

Based on our testing, it seems that the issue has not been resolved as we still encounter the same problem.

At the very least, in order to pass the review process, it would be necessary to send a video to Google. Therefore, we would appreciate it if Zoom SDK could provide a way to remove certain features or offer a means to pass the review process.

Especially when using Custom UI, whether to incorporate certain features depends on the developer. If we are asked to provide a video for a feature we are not using, we will not be able to comply.

Even if we do provide a video, there is a possibility that the app with Custom UI might not pass the review due to differences in appearance.

---

<div class="post-metadata">

**Author:** ![alex.rueb\_zoomdev](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@alex.rueb\_zoomdev](https://devforum.zoom.us/u/alex.rueb_zoomdev)\
**Post date:** [March 14, 2024, 8:53pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/11 "2024-03-14T20:53:58Z")

</div>

We are encountering this issue. Our implementation does not use any screen sharing capabilities, in fact we don’t allow screen sharing (using FLAG\_SECURE). So FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK and FOREGROUND\_SERVICE\_MEDIA\_PROJECTION are impossible to record a video of.

---

<div class="post-metadata">

**Author:** ![erich](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/erich/32/57718_2.png) [@erich](https://devforum.zoom.us/u/erich)\
**Post date:** [March 19, 2024, 8:14pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/12 "2024-03-19T20:14:52Z")

</div>

> [@carson.zoom](#):
>
> FOREGROUND\_SERVICE\_PHONE\_CALL: Allow the capability to use Bluetooth device for the meeting call

@carson.zoom, can you please elaborate on exactly what is meant by “use Bluetooth device for the meeting call”? This description seems to be materially the same as FOREGROUND\_SERVICE\_CONNECTED\_DEVICE.

What are the exact steps are performed in the app to use both the FOREGROUND\_SERVICE\_PHONE\_CALL and FOREGROUND\_SERVICE\_CONNECTED\_DEVICE permissions?

For example

1. Connect the Android phone to a Bluetooth speaker/microphone
2. Launch the application with the embedded Zoom SDK
3. NOTE: the audio source icon in the upper left corner defaults to bluetooth
4. Tap on the audio source icon to toggle between phone speaker/mic and the bluetooth device.

^^^ this set of steps seems to illustrate the FOREGROUND\_SERVICE\_CONNECTED\_DEVICE permission.

**What are a similar set of steps to illustrate the feature(s) that need the FOREGROUND\_SERVICE\_PHONE\_CALL permission?**

As other people in this thread have stated, we have to prepare videos of our mobile applications (which use the embedded Zoom SDK) and show to Google that we are actually using the functionality required for each foreground service permission, and how it will appear to the end users of the combined app.

---

<div class="post-metadata">

**Author:** ![alex.rueb\_zoomdev](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@alex.rueb\_zoomdev](https://devforum.zoom.us/u/alex.rueb_zoomdev)\
**Post date:** [March 20, 2024, 3:29pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/13 "2024-03-20T15:29:15Z")

</div>

I found a solution to this problem. If your app is not using a permission at all, you can go into your AndroidManifest file and add:

> \<uses-permission\> android:name=“android.permission.FOREGROUND\_SERVICE\_MEDIA\_PROJECTION”  
> tools:node=“remove” /\>

and you can add this for any of the Zoom permissions that your app is not using. We just submitted our app using this method and were approved by Google. Our app is not using PHONE\_CALL or MEDIA\_PROJECTION.

Also, see [this](https://developer.android.com/about/versions/14/changes/fgs-types-required) Android docs post for what the permissions are actually doing.

> FOREGROUND\_SERVICE\_CONNECTED\_DEVICE - Interactions with external devices that require a Bluetooth, NFC, IR, USB, or network connection.  
> FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK - Continue audio or video playback from the background.  
> FOREGROUND\_SERVICE\_MEDIA\_PROJECTION - Project content to non-primary display or external device using the [`MediaProjection`](https://developer.android.com/reference/android/media/projection/MediaProjection) APIs. This content doesn’t have to be exclusively media content.  
> FOREGROUND\_SERVICE\_MICROPHONE - Continue microphone capture from the background, such as voice recorders or communication apps.  
> FOREGROUND\_SERVICE\_PHONE\_CALL - Allows a regular application to use Service.startForeground with the type “phoneCall”.

---

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [April 2, 2024, 1:49pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/14 "2024-04-02T13:49:02Z")

</div>

@alex.rueb_zoomdev

Removing the android permission from the manifest is not a good solution for me because if I remove FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK then the app crashes when the meeting has been started.

```auto
<uses-permission 
   android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"
tools:node="remove" />

```

FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK: Allow the capability to share audio while screen sharing

But my does not use screen sharing, so I am not able to provide a video, so I am stuck in upgrading to target SDK 34.

What type of video are you providing to Google to justify the FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK permission?

---

<div class="post-metadata">

**Author:** ![alex.rueb\_zoomdev](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@alex.rueb\_zoomdev](https://devforum.zoom.us/u/alex.rueb_zoomdev)\
**Post date:** [April 2, 2024, 4:16pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/15 "2024-04-02T16:16:36Z")

</div>

@criva

The video we submitted for FOREGROUND\_SERVICE\_MEDIA\_PLAYBACK was showing that when in a call, you can background the app and still receive audio. That is the actual use of the permission. That one is definitely required for the Zoom SDK to work.

- Have 2 devices in a call
- Mute one device, but turn it’s volume all the way up
- Background the muted device
- Talk into the non-muted device
- Make sure the video is capturing the device with the app in the background successfully receiving the audio

We also found more success with explaining in detail exactly what is going on in the video. Essentially narrating what you are doing the entire time.

---

<div class="post-metadata">

**Author:** ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)\
**Post date:** [April 3, 2024, 2:06am UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/16 "2024-04-03T02:06:25Z")

</div>

Hi all,

We’ll fix this issue in our 6.0.0 release. Starting from 6.0.0, developers can remove the permission in the project manifest if the project is not using the screen-sharing feature.

```auto
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" tools:node="remove" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" tools:node="remove" />
<service
    android:name="com.zipow.videobox.share.ScreenShareServiceForSDK"
    android:exported="false"
    android:foregroundServiceType="microphone|connectedDevice"
    tools:replace="android:foregroundServiceType"
    android:label="Zoom"/>

```

Thank you

Elaine

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 3, 2024, 12:06pm UTC](https://devforum.zoom.us/t/app-update-rejected-due-to-foreground-service-permissions/103026/17 "2024-05-03T12:06:36Z")

</div>

Closed on May 3, 2024, 12:06pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
