PWA install prompt as a hub popup
What's new
Campaign graphs accept a new node type, PWAPromptPopupActionNode, which asks the player to
install the PWA with a plain Game Hub popup.
It carries the same fields as the existing PWAPromptActionNode — title, description, body,
a content_type of custom, item, event_item, or link_all_created_offers, button_text and
button_link, the items list, and item_id, store_id, store_item_id, and
link_created_offer for pointing the popup at an offer. What it drops is the placement pair:
there is no position and no skip_dialog.
The node is campaign-only. Page graph_rules and segment-group graphs are unchanged.
Impact
PWAPromptActionNode renders the install ask as a positioned prompt and can skip the dialog
entirely. The new node renders it as a standard hub popup instead, so the ask reads like every
other popup a campaign sends and gets the same content and offer-linking options.
Changes
| Resource | Change |
|---|---|
| create_campaign, update_campaign | Added the node to the graph.nodes discriminator and oneOf |
| update_campaign_graph | Added the node to the graph nodes discriminator and oneOf on the request |
| get_campaign_graph | Added the node to the graph nodes discriminator and oneOf on the 200 response |
Upgrade
- No action required. To use the node, add an entry to the campaign graph
nodesmap withmodel_typeset toPWAPromptPopupActionNode. - Clients that read campaign graphs against a generated model should regenerate — this node type
can now come back in a
get_campaign_graphresponse, and a strict decoder will reject it.
Need help?
Contact our integration team at [email protected]