Deeplink handling
High-Level Solution: The TIXNGO SDK offers enhanced functionality for redirecting users to specific items or views.
Solution & How to Use
The TIXNGO SDK utilizes the deeplink format: [Scheme]://[host]/[path_pattern]/[path] (e.g., https://r.tixngo.io/sdk/tickets).
Specific Redirect (currently limited to ticket details):
Format: [Scheme]://[host]/[path_pattern]/tickets/[webroot]@[ticket_id]
Example:
In this example, the web root is "www.fanapp.com," provided by TIXNGO based on the organizer.
How to Use:
Setup:
Configure the deeplink by adding an intent-filter in the App manifest (including scheme, host, and pathPattern).
<intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="https" android:host="r.tixngo.io" android:pathPattern="/sdk/.*" /> </intent-filter>
Add "deeplinkPathPrefix" to the TixngoConfiguration (in this case, the deeplinkPathPrefix is "sdk").
When the user taps on the URL in the FanApp or listens for a deeplink from applink, invoke the function handleDeeplink from TixngoManager.
fun handleDeeplink(url: Uri, activity: Activity?, completionHandler: (TixngoSDKError?) -> Unit)
© TIXNGO 2023 - Login