Zoom Mobile (iOS) - Is there a flag that indicates if Zoom Apps is running on mobile?

Hi, is there a flag retrievable via the Zoom Apps sdk that indicates if Zoom Apps is running on mobile or desktop?

I was looking at the getRunningContext method, but isPhone doesn’t seem to be returned when opening our app in Zoom Apps on mobile (iOS). https://marketplace.zoom.us/docs/zoom-apps/js-sdk/reference/#getRunningContext

Thanks for the help!

@so-young,

Thank you for your question! Yes, you are on the right path with getRunningContext. Can you share what that method returns when opening your Zoom Apps on mobile (iOS)?

@donte.zoom Thanks for your response! It returns inMainClient when in panel, and inMeeting when in meeting on mobile (iOS). If it returned anything else, it would be breaking for our app, so please let us know if this is not the expected response :pray:

Hi, @so-young,

Thank you for getting back to me. The “product” parameter in the Zoom Apps Context will have this info to detect the device. The expected return value in app context: product=“mobile”. Can you try the getAppContext() and let us know the results?

Resources :

Zoom App context

https://marketplace.zoom.us/docs/zoom-apps/zoomappcontext/

getAppContext

Once confirmed, I will work with the team to update the documentation to make it clearer. Please let us know if you have any additional feedback on how the docs can be improved.

Hi @donte.zoom ,
Thanks for your response! It seems like product property is not available on the app context either in X-Zoom-App-Context header or from the response from getAppContext.

The properties on the app context are:
typ, uid, aud, iss, ts, exp, and entitlements

However, I can access the product parameter as a Home URL template query parameter as noted here in the documentation: https://marketplace.zoom.us/docs/zoom-apps/zoomappcontext/#homeurl-template-parameters.

Could you help confirm the following?

  1. The correct way to determine if running on mobile is passing product as a template parameter on the home url.
  2. The decrypted response from getAppContext should equal to the decrypted X-Zoom-App-Context header.
  3. The expected properties on the app context are typ, uid, aud, iss, ts, exp, and entitlements.

Thank you!

@so-young,

Actually, the right way is to grab the product parameter from zoomSdk.config() response. Please try that and let us know if that helps.

We are actively updating our documentation to provide the best possible support. In order to keep you up-to-date with the latest changes and updates, we recommend that you follow our changelog.

We also welcome any feedback or suggestions that you might have, so please don’t hesitate to share your thoughts with us. If you have any updates that you would like to submit, we would be more than happy to review them and take them into consideration.

https://zoom.us/feed

If you have any questions or concerns, please don’t hesitate to reach out to us at any time.