I've placed a deep link in my manifest using (I think) the format from the documentation
<activity
android:name="my.package.name.AInviteFriends"
android:label="@string/title_activity_a_invite_friends"
android:launchMode="singleTask"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter android:label="@string/filter_view_invite_friends">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="my.package.name" /custom scheme I was told to use
android:host="companyurl.com"
android:pathPrefix="/invite_friends"
/>
</intent-filter>
</activity>
I then navigate to this URL from within the app, hoping for it to be intercepted and go to the activity. I'm not sure why we're using deep links instead of a normal intent, I think it's for tracking or something:
my.package.name://company.com/invite_friends
But when I try this, the browser opens with a Webpage not available/ERR_UNKNOWN_URL_SCHEME error. What am I missing about this intent?