ANK ANK - 1 month ago 15
AngularJS Question

click on link ask permission for app / browser using Ionic deeplinking dynamically

Guys don't mark this question as duplicate, as i gone through many links from past 72 hours. Help me out,
I have website and app, while signup i am sending a mail from which they will verify their account. In website is working well but, while i tired to work it with app it not happening to me. In mu AndroidManifest.xml file i have written the intent:filter with all preference, plugin, .. but

<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:host="xyz.com" android:path="/verifyemail/*" android:scheme="http" />
</intent-filter>


here xyz is sample. My question is,
clicking on the verify link from mail i am getting the link as follows:

www.xyz.com/verifymail/abc


here instead of abc it may be somethind else that means the various email id. How to append those and ask for the app / browser using ionic

Answer

In AndroidManifest.xml, you just need to add the following:

<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:host="xyz.com" android:path="/verifyemail/*" android:scheme="http" />
    </intent-filter>

As i know we can't get dynamic link directly as the path has to be changed from abc to some other which is not possible. So, as you have to make it static and try another process to those functionality and you can able to traverse based on requirement.