I have several deeplink schemes for different applications. I have a backend that sends a different circuit for each application. If all of them are installed on one device, all of them will be able to parse the sent deindvik. Therefore, when all three are installed and deeplink is called for app2. All applications can catch it, but only application2 can correctly process it in the application and should be the only one who can catch it.
Flavors defined in my .gradle file
productFlavors { app1{ applicationId "com.apps.app1" } app2{ applicationId "com.apps.app2" } app3{ applicationId "com.apps.app3" } }
An intent filter that I use to catch deeplinks in my manifest.
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:pathPrefix="/" android:scheme="app1" /> <data android:pathPrefix="/" android:scheme="app2" /> <data android:pathPrefix="/" android:scheme="app3" /> </intent-filter>
Is there a way to make deeplink only catch one flavor?
source share