How to use the same website host in different applications?

Viewed 16

I want to open my applications using a link to my one site, but I'm facing such a problem that I can't add the site host in "open by default" to two of my applications at once. When I try to do this I get the error "This host is already in use by another application". Can I somehow use the host for all my applications?

Sample manifest code for application 1:

<intent-filter android:autoVerify="true">
   <action android:name="android.intent.action.VIEW" />
   <category android:name="android.intent.category.DEFAULT" />
   <category android:name="android.intent.category.BROWSABLE" />
   <data android:scheme="http" />
   <data android:scheme="https" />
   <data
      android:host="testsite.com"
      android:pathPrefix="/application_1" />
</intent-filter>

Sample manifest code for application 2:

<intent-filter android:autoVerify="true">
   <action android:name="android.intent.action.VIEW" />
   <category android:name="android.intent.category.DEFAULT" />
   <category android:name="android.intent.category.BROWSABLE" />
   <data android:scheme="http" />
   <data android:scheme="https" />
   <data
      android:host="testsite.com"
      android:pathPrefix="/application_2" />
</intent-filter>
0 Answers
Related