app domain
List of event types part of the "app" domain.
reset
Stories addressed
IWA decides that the entire app should be reload, including all its configuration and navigation contexts.
URL
Request data
None
Response data
No response.
online_status
Stories addressed
IWA or other part of the app needs to know if the device/app is currently online or offline
URL
Request data
None
Response data
Example response
open_file
Stories addressed
IWA or other part of the app needs to open an arbitrary file in the platform-default way.
Description
On mobile platforms, the file must be at a location accessible to the app.
If the path to the file is a relative one (starts with “./”), the native must compute the absolute path according to the following: - if an IWA is sending the event, the absolute path is relative to the entrypoint file of the IWA - if the native document reading view is sesnding the event, the absolute path is relative to the HTML file being read - if another native part of the app is sending the event, the absolute path is relative to the app bundle’s root
On iOS, the native would open the file in the iOS default documetn viewer (calling NSApplication:openURL). On Android, the native would trigger an intent and let the OS handle opening the file from that intent.
URL
Request data
Example request data
Response
No response.
set_authentication_status
Stories addressed
IWA logged the user in or out and lets the native app know.
URL
Request data
Example request data
Response
No response.
set_notification_presentation_status
Stories addressed
Login IWA needs to let the native app know that a user is ready to have notifications presesented to them.
Description
The user might not be logged oput and therefore not in a state where they should have notifications,with actions that require being authenticated presented to them.
Similarly, the application logic or UI might be busy and in a state where it isn’t desirable to present the user with notifications.
By default, the native app is in a not ready status and therefore won’t present any notification to the user until this call is made.
URL
Request data
Example request
Response
No response
set_back_override
Stories addressed
IWA wants to interrupt native back navigation for the current route when the user triggers it.
URL
Request data
Example request
Response
No response. When the user triggers native back navigation, the native app will send the following window.communicate event to the IWA:
user_location
Stories addressed
IWA needs to know the devices current geographic location
URL
Request data
None
Response
Example response data
feature_status
Stories addressed
IWA needs to know whether a device feature is available and any qualifying details that may be relevant
URL
Request data
Example request
Response
Feature details for biometrics
Example response
clearall
Stories addressed
IWA or other part of the app wants to reset the app to its initial launch condition (but not clearing authentication state).
URL
Request data
None
Response
No response
switch_tab
Stories addressed
IWA or other part of the app wants to change the current displayed tab (only actioned in a tabbed app)
Request data
Example request
Response
No response, but...
Message for tab being switched to
The native app will issue a window.communicate call to the tab being switched to, optionally including the "params" property specified in the original event.
set_tab_appearance
Stories addressed
IWA or other part of the app wants to modifiy the appearance (icon and/or text) of a tab.
Although the configuration of the list of tabs and the IWAs loaded in them never changes, this can be used by IWAs to simulate the display of different tabs to different users.
Request data
Not all tabs have to be specified in this event and it is possible to update the appearance of one or more tabs at a time.
The request data is an object which has as properties the "id" of the tabs to modify, as configured in the app data.
The value for each of these tab ids is an object with the following properties:
Example request
Response
No response
Last updated