Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Back button after the deeplink comes into the app does not go back to where it came from

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.

like image 525
user3773337 Avatar asked May 18 '15 20:05

user3773337


People also ask

What is deeplink redirect?

Deep links send mobile device users directly to relevant pages in your app rather than your website. Users click on ads and go directly to your app pages. You can use deep links in many Google Ads products, including App campaigns for engagement, App dynamic remarketing, and Search, Shopping, and Display campaigns.

What is difference between app link and deep link?

When a user click an URL, it might open a dialog which asks the user to select one of multiple apps handling the given URL. On the other hand, An Android App Link is a deep link based on your website URL that has been verified to belong to your website. When user clicks that URL, it opens your app.

What is a deferred deeplink?

Deferred deep links are mobile hosted links that are able to take the user to the intended content through the install process, basically matching the user who clicked a link in a paid or organic channel to the user who opened the app for the first time after installing it.

How do I find a deep link for an app?

To access the Deep Link Validator:In Google Ads, click Tools. Find “App Advertising Hub” under “Planning". You'll find the Deep Link Validator on the menu.


2 Answers

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.enter image description here

like image 79
Michele La Ferla Avatar answered Nov 08 '22 13:11

Michele La Ferla


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>
like image 36
Konstantin Loginov Avatar answered Nov 08 '22 11:11

Konstantin Loginov