I am using the concept of deep linking in my app what i actually want is when i share the link from my app its working fine it goes to the activity which i want to open in my app but problem is when a user is not having this app this link is opening through phone's browser and error is displayed of not found but i want to go to the play store if app is not installed. what approach should i try....
manifest.xml:
<activity
android:name="package"
android:configChanges="orientation|screenSize|keyboardHidden">
<intent-filter android:autoVerify="true">
<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.example.com"
android:pathPrefix="/Home_page"></data>
<data android:scheme="https"
android:host="www.example.com"
android:pathPrefix="/Home_page"></data>
</intent-filter>
</activity>
If the app is installed, the user will be taken to the app via the deep link. If and only if the app is not installed, the click will not go anywhere. Therefore, bidders should only create deep links for users that they know have previously installed the app, based on data from their analytics SDK(s).
If that's the case, for iOS to be able to redirect it to your app, you'll need to implement universal links. This implementation requires you to register the domain you want to respond to on your entitlements file and add an apple-app-site-association file to your backend.
In the context of mobile apps, deep linking consists of using a uniform resource identifier (URI) that links to a specific location within a mobile app rather than simply launching the app. Deferred deep linking allows users to deep link to content even if the app is not already installed.
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.
I was looking for something like this few months back and I found out that unless you actually have a server from where you can direct the link to the Play Store, you cant do it normally. For this the best solution I found out was Firebase Dynamic Links, they do the checking on their side and takes your users to the play store if they have not installed the app. Plus it also provides analytics of the number of clicks and the sources and some information about your users.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With