ChuckKelly ChuckKelly - 2 months ago 9
Android Question

Android deep linking doesn't launch app

I'm pulling my hair out over this; the instructions seemed so simple, yet they just don't work.

Here's the manifest activity intent code:

<activity
android:theme="@style/Theme.Buhzyellowtoplighttabs"
android:name="com.blah.package"
android:configChanges="orientation|keyboardHidden"
android:windowSoftInputMode="adjustResize|stateHidden"
android:screenOrientation="portrait" >

<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:scheme="http" android:host="www.buhz.com" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>


So you would think that when I run the app on my phone, go to my browser and go to
www.buhz.com
it should give me a option to launch the app, right?

Answer Source

As far as I'm aware, this will only work when you click a link to the site, not when you type the URL in.

On the off-chance you're reading this on the Android device your testing on, here is a link for you