Progressive Web App (PWA) support
What's new
Campaign automation gains end-to-end support for Progressive Web Apps. A new PWAPromptActionNode graph node prompts players to install your PWA, two new pwa_installed and pwa_deinstalled campaign event types let campaigns react to install-state changes, and a new optional is_pwa_installed player attribute records whether a player has the PWA installed.
Impact
You can build lifecycle flows that encourage PWA installs and branch on whether a player installs or uninstalls the app, then target those players using the recorded install state.
Changes
| Resource | Change |
|---|---|
| create_campaign, update_campaign | Added PWAPromptActionNode to the graph.nodes discriminator and oneOf, and pwa_installed / pwa_deinstalled to the campaign event type enum |
| get_campaign_graph, update_campaign_graph | Added PWAPromptActionNode to the graph nodes discriminator and oneOf |
| get_campaigns, get_campaign, get_campaigns_by_ids | Added pwa_installed / pwa_deinstalled to the returned campaign event type enum |
| update_segment_group | Added PWAPromptActionNode to the graph.nodes discriminator and oneOf |
| get_pages, get_page, create_page, update_page, bulk_update_page, translate_page | Added PWAPromptActionNode to DynamicBlock.graph_rules.nodes discriminator and oneOf |
| update_player | Added optional is_pwa_installed player attribute |
Upgrade
- No action required. To use the new node, include a graph entry with
model_type: PWAPromptActionNode. - To trigger campaigns on install changes, use the new
pwa_installedandpwa_deinstalledevent types. - Send
attributes.is_pwa_installedon update_player to record a player's PWA install state.
Need help?
Contact our integration team at [email protected]