In this section we will look at some additional integration details (such as user’s locale) when working with Boxo Platform and Boxo SDK.
Here is the payload that Boxo will send via platform to host app backend.
Host app can provide language during initial launch and miniapp will be able to retrieve latest language settings.
In order to land on Home page each time miniapp is closed and reopened, a saveState=false
can be passed. This behavior is available in versions starting from v0.1.4
.
For example:
The deeplink URL should include miniapp id and the relevant URL route, if needed to land user on a specific page.
User will first deeplink to host app, then in host app it parses the deeplink and obtains the miniapp ID and the path to the page.
Open the homepage of the miniapp
Open a specific page within the miniapp
Available from SDK version v0.1.6
(Capacitor v5) and v0.2.4
(Capacitor v6).
Miniapp config is cached for 60 seconds. Logo and other related miniapp configuration changes should be reflected on next launch after 60 seconds have passed.
Available from SDK version v0.3.0
for Capacitor v6.
Instead of performing model check against a compatible device list, Android SDK will perform eSIM compatibility check using native method and pass on the result to eSIM miniapp.
The feature is supported inside the SDK, no code change needed on host app side.
Here is an example of implementation of eSIM direct installation, sample code is also available here.
Capacitor plugin can be downloaded here. Example code reference can be viewed here. Latest version: v0.1.1
(includes changes to support play instruction video on Install Now page).
Here are examples payloads for various webhooks that eSIM Miniapp BE will send, if you have provided use with the webhook URL.
eSIM backend will use hostapp_client_id
and hostapp_client_secret
configured in Boxo Platform and they will be passed as basic auth in Authorization
header along with all requests. You can use this implement authentication for your webhook endpoint.
This event is fired when user successfully purchases a new eSIM or tops up existing eSIM.
This event is fired when eSIM activates for the first time.
This event is fired when eSIM has expired.
This event is fired when eSIM data remaining reaches 0.
This event is fired when eSIM data has been used 75% or 90%.
This endpoint allows to simulate various webbhooks sent by eSIM backend. Webhook simulator is available at <esim-backend-url>/api/v1/sources/<hostapp_name>/webhook/simulator/
.
Here as an example request to webhook simulator and it’s payload:
In this section we will look at some additional integration details (such as user’s locale) when working with Boxo Platform and Boxo SDK.
Here is the payload that Boxo will send via platform to host app backend.
Host app can provide language during initial launch and miniapp will be able to retrieve latest language settings.
In order to land on Home page each time miniapp is closed and reopened, a saveState=false
can be passed. This behavior is available in versions starting from v0.1.4
.
For example:
The deeplink URL should include miniapp id and the relevant URL route, if needed to land user on a specific page.
User will first deeplink to host app, then in host app it parses the deeplink and obtains the miniapp ID and the path to the page.
Open the homepage of the miniapp
Open a specific page within the miniapp
Available from SDK version v0.1.6
(Capacitor v5) and v0.2.4
(Capacitor v6).
Miniapp config is cached for 60 seconds. Logo and other related miniapp configuration changes should be reflected on next launch after 60 seconds have passed.
Available from SDK version v0.3.0
for Capacitor v6.
Instead of performing model check against a compatible device list, Android SDK will perform eSIM compatibility check using native method and pass on the result to eSIM miniapp.
The feature is supported inside the SDK, no code change needed on host app side.
Here is an example of implementation of eSIM direct installation, sample code is also available here.
Capacitor plugin can be downloaded here. Example code reference can be viewed here. Latest version: v0.1.1
(includes changes to support play instruction video on Install Now page).
Here are examples payloads for various webhooks that eSIM Miniapp BE will send, if you have provided use with the webhook URL.
eSIM backend will use hostapp_client_id
and hostapp_client_secret
configured in Boxo Platform and they will be passed as basic auth in Authorization
header along with all requests. You can use this implement authentication for your webhook endpoint.
This event is fired when user successfully purchases a new eSIM or tops up existing eSIM.
This event is fired when eSIM activates for the first time.
This event is fired when eSIM has expired.
This event is fired when eSIM data remaining reaches 0.
This event is fired when eSIM data has been used 75% or 90%.
This endpoint allows to simulate various webbhooks sent by eSIM backend. Webhook simulator is available at <esim-backend-url>/api/v1/sources/<hostapp_name>/webhook/simulator/
.
Here as an example request to webhook simulator and it’s payload: