Android Management API Google Playstore iFrame Select Mode


Recently, Google deprecated the "/work" app browsing page, which forced us to migrate to emm-api iFame. I tested the approval mode in our code, and it works great, and I can approve/unapprove from iFrame and I can see the approved app on my testing device. Unfortunately, Google also deprecated the Approve mode, which left the select mode as the only choice:

https://developers.google.com/android/work/play/emm-api/managed-play-iframe#step_3_handle_iframe_events

For Select mode, Google documentation stopped on the handle iFrame "onproductselect". Google says that after getting the selected app from the iframe front end, pass it to the backend, update the policy to include the selected app, save it, and you will set the selected app on the device. This is very general; there are lots of questions left unanswered.

  1. What is the behavior of the iFrame UI for Select mode? If I come back to the same app I previously selected, will UI change the "select" button to "selected" to indicate the app was already part of the policy? I assume that if the policy update is successfully processed by Google, the previously submitted apps should appear as "Selected" in the iFrame UI, and users should have the option to unselect them.

  2. iFrame layout displayed only a list of the "Approved" apps. Now, with the select mode, where do we see the selected apps? What happens to the previously Approved Apps? What is going to happen for the newly Selected Apps? Will Google approve them on Google's side, or will someone from my company with the admin entitlement approve the selected apps, and make them selected apps?

    I don't get why Google decided to deprecate approval mode, when iFrame UI is highly coupled with the approval mode. If anyone can point me in the right direction or share relevant documentation, I would greatly appreciate it.

    This is how I created a new application object in the backend, is this what Google expecting?
    enter image description here

Update: I added some logging statements in my code to see which apps were sent down to the testing phone for installation. In the log, I see Error: The product app:com.grabtaxi.driver2 is not approved by the enterprise. The Grab app was my testing app, which I added via iFrame select mode. From the error message, Google is still expecting the app to be approved. Google deprecated the "Approval" mode and is enforcing us to switch to the "Select" mode, but background Google processing is still expected app to be approved.

0
Jun 15 at 7:41 PM
User AvatarHalf Ass Dev
#android#iframe#android-management-api

No answer found for this question yet.