-3

I have a mobile application for my website and when user register we send them confirmation email.So when user click on confirmation link from mobile device we want to open application instead of browser.

Nikhil Solanki
  • 169
  • 1
  • 2
  • 7

3 Answers3

0

You can use android:scheme to specify your app to be opened from the special link.

In your manifest add

<intent-filter>
    <data android:scheme="your.scheme" />
    <action android:name="android.intent.action.VIEW" />
</intent-filter>

In your website add the link like this:

<a href="your.scheme://other/parameters/">

your app will be launched automatically as this is the only app that handles your.scheme:// type of URIs

Caution: If the user doesn't have the app installed they will get an error.

Sadiq Md Asif
  • 847
  • 6
  • 18
0

Try Firebase Dynamic Links.

When a user opens one of your Dynamic Links, if your app isn't yet installed, the user is sent to the Play Store or App Store to install your app (unless you specify otherwise), and your app opens. You can then retrieve the link that was passed to your app and handle the link as appropriate for your app.

Jaymin Panchal
  • 2,664
  • 2
  • 24
  • 28
0

See this answer fully explained for android as well as what you should do from web side.

Community
  • 1
  • 1
TapanHP
  • 5,097
  • 5
  • 33
  • 64