iwa domain
set_ready
Stories addressed
The IWA has finished loading its core code and is declaring to the native app that it is ready to handle window.communicate events.
URL
Request data
None
Response
No response
navigate
Stories addressed
Navigate from an IWA to another IWA, with a route specified
Navigate to a different route in the same IWA
Navigate from a native view to an IWA
Optionally: change tab before navigation (ignored for linear apps)
URL
Request data
Example request data
Response
No response. Second web app will get window.communicate call with purpose = navigate.
navigate_back
Stories addressed
Navigate from a route back to another route on the navigation stack, with a route id specified
Navigate from a route back to the previous route
URL
Request data
A route must match both webapp_id and route_id to be navigated to.
Example request data
Response
No response. When displaying the mathcing route again, the native app will send the original navigate event to the IWA, with all its data, for example:
trigger_action
Stories addressed
An action defined by a web app is triggered within the native UI (presumably toolbar or navabar button was tapped)
The current IWA wants to initiate a workflow which typically starts with an action
URL
Request data
Example request data
Response data
Example response
Trigger action event initiated by the native app
Most of the time, actions are not triggered by the IWA but by the user tapping/clicking on a button which was presented to them within the native UI according to the IWA’s definition.
In this case there is no request/response flow but simply a window.communicate(...)
event from the native to the IWA, with its purpose
set to trigger_action
.
Comm event data
Similar to the response_data
above but at the root of the event object.
Example comm event
handle_share (deprecated)
Note
handle_share events are deprecated in favour of the upcoming Service IWA feature
Stories addressed
The native app had information shared with it by the OS or another app and passes it on to its default IWA.
This not a request/response event, so its data sits at the root of the event object.
Comm event
Comm event data
File object properties:
Example comm event
Last updated