Reputation: 2378
When there is a deeplink into the android app from the mobile browser website and then I press back button, the app shuts down and there is nothing in the background instead of going to the mobile browser website. I see the browser still in memory when I click the device button for all the open apps so I do not think browser is cleaned up by the OS. Has someone resolved this issue? Please help.
Upvotes: 9
Views: 3387
Reputation: 16000
The default behaviour should be returning back to browser, actually. Does the issue happen for all devices and all Android API versions you tried?
Maybe, you do something wrong with in your AndroidManifest
? Here's Activities' declaration I'm using and it works for me:
<activity
android:name="<activity_name>"
android:clearTaskOnLaunch="true"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<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="https"
android:host="<some_host>"
android:pathPrefix="/<some_path_prefix>" />
</intent-filter>
</activity>
Upvotes: 1
Reputation: 6884
I found the following which might help you:
You can also redirect new users (who do not already have the app installed on their device) to download the app using a Attribution Analytics URL so we can attribute the installs generated from your website. We ensure that the loading of the Download URL (Attribution Analytics URL) is delayed by 1 second so that if the user does not have the app installed, then they will still view the bridge page and then be redirected to download the app from the app store after the Download URL loads.
Upvotes: 1