Skip to main content

Deeplinks

The deeplink URL should include the DPApp ID and the relevant URL route if needed to land the user on a specific page. The user will first deeplink to the host app, which then parses the deeplink to obtain the DPApp ID and the path to the page.


Open the homepage of the DPApp

iOS

Swift
DPSDK.open(
appId: "app_id",
from: viewController
)

Android (Kotlin)

Kotlin
val appId: String = "<app_id>"
val dpApp = DPSDK.getDPApp(appId).open(this)

Open a specific page within the DPApp

iOS

Swift
DPSDK.open(
appId: "app_id",
params: ["path": "introduction"],
from: viewController
)

Android (Kotlin)

Kotlin
val appId = "<app_id>"
val path:String = "introduction"
DPSDK.getDPApp(appId).open(this, path)