Publish a Web App and Push It to a Policy
A 4-step recipe with Google Android. We can help you get access.
Recipe · 4 steps
Publish a Web App and Push It to a Policy
with Google Android
Create a web app and add it to a policy so managed devices install it.
- Create the hosted web app under the enterprise. This mints the app resource only; no device is affected until a policy references it.
- List the enterprise's web apps to confirm the new app registered and is addressable before a policy is changed to depend on it.
- Read the target policy to capture its current application list. Patching applications without merging this list first would uninstall every app the fleet already has.
- Patch the policy's application list to install the new web app. The updateMask limits the write to the applications field so unrelated policy settings are untouched.
What you'll need to have ready
- enterpriseName: The enterprise resource name (e.g. enterprises/LC0123abcd).
- policyName: The full policy resource name that should install the web app.
- title: The title shown under the web app icon on the device.
- startUrl: The URL the web app opens.
- displayMode: How the web app renders on device (e.g. STANDALONE, FULL_SCREEN, MINIMAL_UI).
For your developer
Arazzo workflow google-android:publish-web-app, 4 operations: createWebApp → listWebApps → getPolicy → patchPolicy. Specs on APIs.io.