Mobile App Bridge
Hybrid Experience can start inside your own mobile app and later hand the borrower into Hosted Experience. After handoff, the borrower may need to complete lender-owned steps such as KYC, e-mandate, e-sign, or lender redirection.
Inside mobile apps, these steps need explicit app support. A normal browser can open a new tab or close a child window automatically. A mobile app container usually needs a bridge so Hosted Experience can ask the app to open an external lender URL and return the borrower safely.
Where This Applies
Use the mobile bridge when your Hybrid journey opens Hosted Experience inside a customer-controlled mobile app container.
This can include:
- the Hosted URL returned after offer selection
- a Hosted resume URL reopened after an external lender step
- an Account Aggregator URL opened during the Hybrid offer-fetch flow
- lender-owned KYC, mandate, agreement, or redirection pages opened from Hosted
The bridge does not change Hybrid API behavior. It only makes the mobile handoff behavior reliable.
App Responsibilities
When Hosted Experience asks your app to open an external lender step, your app should:
- receive the bridge event from Hosted
- read the event payload
- open the lender-owned
external_urlin an app-controlled surface - give the borrower a clear way back, such as “Done” or “Back to application”
- return to the existing Hosted surface when possible
- open
resume_urlif the original Hosted surface is no longer available
Your app does not need to decide the next lender step. Hosted Experience refreshes the journey when the borrower returns and shows the correct next state.
Bridge Channel
Expose a native message bridge named:
Channel names and event names are case-sensitive.
Depending on your mobile container, bridge messages may arrive as a JSON string or as an object. Parse defensively and route by the type field.
If your container uses named handlers instead of a named post-message object, map external-step messages to:
and exit messages to:
External Open Event
Hosted sends this event when the app should open a lender-owned external step.
Step Values
Use step for display labels, logging, analytics, or app-level routing. Do not use it to decide the next Hosted journey step.
Exit Event
Hosted may send this event when the borrower uses a Hosted exit action.
When your app receives this event, it can close the Hosted screen, return the borrower to your app home screen, or perform another app-owned exit behavior.
Recommended Flow
Error Handling
Handle bridge failures without crashing the app.
Logging Recommendations
Log enough to support debugging without storing sensitive URLs or borrower data unnecessarily.
Useful log points:
- Hosted URL started loading
- Hosted URL finished loading
- bridge registered
- bridge event received
- event type and version
- external step
- external URL host
- journey ID
- offer ID, if present
- lender name, if present
- borrower returned to Hosted
- resume URL used
- parse, open, or close failures