Deep Links for the Android SDK
Configure deep link handling for Airship messaging.
Deep linking allows Airship messaging to open your app to specific resources or screens. When a user interacts with a message (notification, in-app message, etc.), the deep link can navigate them directly to the relevant content in your app.
Listening for deep links
The SDK provides a way to listen for deep links so you can handle them in your app. This handler receives all deep links except for Message Center and Preference Center display requests, which are handled automatically by their respective features.
For Message Center and Preference Center display requests, see Embedding the Message Center and Embedding the Preference Center.
Listening for deep links
Set the deep link listener during the onAirshipReady callback:
Airship.deepLinkListener = DeepLinkListener { deepLink: String ->
// Handle deep link
true
}Set the deep link listener during the onAirshipReady callback:
Airship.setDeepLinkListener(deepLink -> {
// Handle the deepLink
return true;
});Categories