Launch app from email url?

How can I launch my app from a link in an email? I am sending updates via email and if the user has the app installed on their phone I want it to open the app to a specific view. If the user doesnt have the app installed I want it to open a different url.

Any ideas on how to achieve this?

I found this plugin. Has anyone used this? Cordova Universal Links



< intent-filter>

< action android:name=“android.intent.action.VIEW” />
< category android:name=“android.intent.category.DEFAULT” />
< category android:name=“android.intent.category.BROWSABLE” />
< /intent-filter>
to your manifest file with the url info is the url you specify in your mail to open APP

Look for the Custom URL scheme plugin. This allows you to register a custom url that will open your app.