Deeplinks
You may have a usecase where you want to open a brand page or some other page directly on SDK initialization.
This can be achieved by passing a page
parameter during initialization. The implementation varies slightly across different platforms.
Supported Pages
Currently, you can deeplink to the following pages:
- Brand Page: Opens a specific brand’s page.
page
:brand
params
: RequiresbrandId
(e.g.,"uber"
)
- Transaction History: Opens the user’s transaction history.
page
:transactions
- Help & Support: Opens the help and support section.
page
:support
Platform-Specific Implementation
Android
For the native Android SDK, you can pass the page
parameter when calling init
.
Hubble.init( // ... other options page = HubblePage( page = "brand", params = mapOf("brandId" to "uber") ))
iOS, React Native, and Flutter
For our web-based SDKs (iOS, React Native, Flutter), the deeplink is passed as a URL parameter during the initial load of the WebView.
Here is how you can construct the URL:
const sourceUrl = "https://vouchers.dev.myhubble.money/classic?.......&page=brand&brandId=uber";
You would then use this sourceUrl
as the initial URL for your WebView.