I know there are several questions on SO about this, but none of them are helping to resolve my issue.
I want to be able to click a link from an email/text/browser and open my app.
I have the AndroidManifest.xml code:
<!-- Splash Activity -->
<activity
android:name=".ui.SplashActivity"
android:label="@string/app_name"
android:theme="@style/SplashTheme"
android:launchMode="singleTask">
<!-- Launcher intent filter -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Branch URI scheme -->
<intent-filter>
<data android:scheme="myscheme" android:host="open" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
This appears to follow the documentation here exactly, however, when I use Chrome (or Android Browser) to browse to myscheme://open
, my app does not open, and instead I get Google search results for myscheme://open.
Can anyone see what piece of the puzzle I am missing here? How can I get my app to open via URI?
Small update:
After reading this, I have found that navigating Chrome to market://details?id=com.myapp
does not open the play store. Instead it returns Google search results - the same as when trying to launch my app directly. Which is confusing. Am I missing a global OS setting to allow deep linking?