html - Sending an email that opens Android app from email client -
i receive weekly pinterest newsletter. when click on image or available on google play logo inside, built-in popup comes on phone offering me open link chrome or pinterest. key here pinterest app. on laptop brings pinterest.com link.
so working on our newsletter , decided this. did set google play link of our app in <a href />
section, opens google play instead of offering me option open app on phone.
<a href="https://play.google.com/store/apps/details?id=com.app.app"><img src="http://www.website.com/mylogo.png" width="100" height="35"/></a>
how can this?
solution
i answer question don't understand how works, me, unfortunately stackoverflow doesn't let me it.
this did:
manifest:
<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="http" android:host="yolify.net" android:pathprefix="/"/> </intent-filter>
link:
<a href="http://yolify.net">link</a>
your website (just before </head>
tag)
<script> if (screen.width <= 1080) { document.location = "https://play.google.com/store/apps/details?id=com.yolify.android"; } </script>
what's happening here?
- you point link website, not google play url.
- in manifest set app listen links pointing website.
- you send mobile users google play url, happens when don't have app on phones. otherwise, browser offer open app email.
i highlight though there 5 similar questions on stackoverflow, none of them gives real explanation on background. hope others suffering question.
Comments
Post a Comment