How to set up your app for deeplinking
Configuring your appâs custom scheme
First, you should follow Expoâs guide on enabling deeplinking for your app here.Registering your appâs deeplink URL with Dynamic
Afterwards, head to your Dynamic dashboardâs Security page and enable âWhitelist Mobile Deeplinkâ. Click âSave changesâ. Next, click the cog in this same section to open up the Mobile Deeplink URL page, and there you must add your appâs deeplink URL with the same custom scheme you configured in the previous step. It might look something like this:myappcustomscheme://
.
Creating a new app bundle
After configuring the deeplink URL, you need to create a new app bundle that includes the deeplink configuration. This is necessary because the native modules and configurations need to be properly set up in the app bundle. For Expo projects, you have two options:- Use expo prebuild to generate the native code and then build your app
- Use EAS (Expo Application Services) to build your app bundle
Troubleshooting
You can check if the deeplink is working by:- installing the app in the simulation
- opening safari
- paste the deeplink they configured in the dashboard
- your app should open as a result of opening the deeplink in safari