Deep links require a Pro plan subscription or
higher.
Prerequisites
Before you begin, make sure to follow the quickstart guide to set up deep links on Dub by completing the following steps:- Configure your deep link domain on Dub. This replaces Firebase’s
*.page.link
domain with your own branded deep link domain. - Create your deep links on Dub.
- Handle deep link redirects inside your app (more details below).
Migrating Android apps
1
Remove Firebase Dynamic Links SDK
If you have the Firebase Dynamic Links SDK installed, remove it from your Remove any Firebase imports from your Kotlin/Java files:
build.gradle
file:2
Update AndroidManifest.xml
If you’re using the same domain for both Firebase Dynamic Links and Dub (e.g., yourapp.com), no changes are needed — you can skip this section.However, if you were previously using Firebase’s branded domain (e.g., yourapp.page.link), you’ll need to replace it with your custom Dub domain in your app’s configuration.
3
Implement Deep Link Handling
Override In a nutshell, this code:
onNewIntent
in your main activity to handle deep link opens:- Extracts the domain and key from the deep link URL
- Sends the data to the
/track/open
endpoint - Retrieves the final destination URL
- Navigates to the destination URL in the app
Migrating iOS apps
1
Remove Firebase Dynamic Links SDK
If you have the Firebase Dynamic Links SDK installed, remove it from your Remove any Firebase imports like:
Podfile
:2
Update Associated Domains
If you’re using the same domain for both Firebase Dynamic Links and Dub (e.g., yourapp.com), no changes are needed — you can skip this section.However, if you were using Firebase’s branded domain (e.g., yourapp.page.link), you’ll need to replace it with your Dub domain in your iOS project setup.To enable Universal Links with Dub, update your Associated Domains in Xcode:In a nutshell, this code:
- Open your Xcode project.
- Select your app target → Signing & Capabilities
- Under Associated Domains, replace the old Firebase domain with your Dub domain:
Info.plist
are required unless you had other Firebase-specific deep link configurations.- Sends the deep link URL to the
/track/open
endpoint - Retrieves the final destination URL
- Navigates to the destination URL in the app