Handling deep links

Follow this guide to get started with deep linking in the Knock Android SDK.
💡
Note: We recommend taking advantage of our KnockMessagingService & KnockActivity to simplify deep link handling.

Follow the steps below to configure URLs that deeply link to specific content in your Android application. You can read more about app links in the Android Developer documentation here.

1

Define intent filters

In your AndroidManifest.xml file, add intent filters for the app link schemes you want to use. The App Links Assistant in Android Studio simplifies this process with a step-by-step wizard.

2
  • In your trigger data payload that you send to Knock, include a property with a value for your app link. The name of the property doesn't matter, so long as you know beforehand what it will be called.
  • You can configure the format of the API request sent to FCM in your workflow step's payload overrides.
3

Handle incoming URLs from a push notification

Handle incoming URLs in your KnockActivity or KnockMessagingService.

You can optionally associate your app links with your website.