App Web View Model
Types
Functions
Some services (e.g. Paypal) will be opened independently from the web app, see "openURLInNewTab". On completion, the flow will be redirected to the schema provided to this request. This needs to be a unique identifier, e.g. "pace.some_uuid".
Requests, if Apple Pay is ready to be used (enabled + cards onboarded; iOS only)
The Apple Pay payment request to be handled (iOS only).
Asks the client for permission to redirect to another web app than the current one. The client can decide whether the app switch should be allowed or disallowed and intercepted by the client (e.g. a client with an own map might not want the web app to redirect to the fuel-station-finder). By default, redirects should always be allowed.
The app requests navigating back.
Requests to close the current PWA.
The current app will no longer be displayed up until the given date.
Requests a fresh access token for the currently authenticated user.
Requests the biometric status, i.e. whether biometric authentication is possible (e.g. via fingerprint or face recognition).
Requests a configuration value which was defined externally (e.g. via Firebase). Note that the value will always be returned as a string, regardless of the actual type.
Requests the current user location as provided by e.g. GPS.
Retrieve a previously saved string value by key. The user should authenticate the access to the string e.g. with biometric authentication.
Return a TOTP generated by previously saved TOTP secret data for the specified key. The user should authenticate the access to the secret data e.g. with biometric authentication.
Requests a unique identifier for the user session for tracing purposes. This must return a new unique value on every call.
Send an base64 encoded png image for sharing with the user.
Requests a collection of the supported version and operations.
Checks if biometric authentication is enabled.
Checks if remote config is available.
Checks if user is signed in.
Requests to log an event to the analytics backend (e.g. Firebase).
Requests to logout the current user.
Invoked when the page has started or finished loading.
Invoked when the WebClient changes it's error state (e.g. a website that couldn't be loaded previously is now ready).
Invoked when the URL has changed.
Open the given url in a new browser tab. This specifically is the case when authorizing the payment process via paypal due to security reasons.
Requests to save a string securely on the device for later retrieval.
Requests to save TOTP secret data on the device for later retrieval.
Requests to set a user property for the current user in the analytics backend (e.g. Firebase).
Request to offer the user to share a text via the native share sheet
In specific situations the app needs the user's current location to be verified in order to continue its flow.