How can I smartly redirect users who click on an email link, to my app or my mobile site? - android

I have an app and a mobile site. I also send emails to my users. I would like the following to happen if my users open these emails on their mobile phones and click on a link:
If a user has installed my app, then launch the app and open the relevant page inside it.
If a user has NOT installed my app, then launch the browser and take him to the relevant page on my mobile site.
I want this to happen seamlessly and automatically. I DON'T want to use the inbuilt android prompt as users end up choosing chrome (since it is the first option shown). How can I do this? Would ideally want solutions for both android & ios.

You can do this with a landing page. Send user to landing page, check platform, then check if they have app installed(if they have registered custom url scheme) if they have then they go to app. Otherwise they go to mobilesite.
See this answer by https://stackoverflow.com/a/29019660/1165581 by Adam

You can NOT prevent the Android prompt which lets the user choose an option. What you can do is, create a link to your mobile site and have your App react to urls containing your domain. So what will happen is:
if a user clicks the link and does NOT have your App installed, he/she will be prompted with the default url handler prompt (only the first time) and then open the mobile site in the prefered browser
if a user clicks the link and DOES have your App installed, he/she will get the same prompt, only your App will be listed there as well next to browser Apps.
Here is an explanation on how to this: Android Respond To URL in Intent

You can use URL Schemes in iOS for your requirement to be full filled. By Using URL Scheme you can do exactly same. Clicking on link will launch your app. Please go through the concept of URL Schemes.
Follow the below referral link:
http://code.tutsplus.com/tutorials/ios-sdk-working-with-url-schemes--mobile-6629
Hope this helps!!

Related

Prevent android deep link from redirecting to playstore if app doesn't exist

I am working on a website for a product which also has an android application. I want to redirect the user from mobile web browser to the android application when a particular task is performed. I use a deep link of the format as below -
intent://#Intent;package=<PACKAGE_NAME>;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;scheme=https;end
The issue is that this link is redirecting user to playstore if app is not installed. I wanted user to stay on the web browser if app is not installed. How can we achieve that?
As of now, i tried replacing the intent with https to produce link of the format as below -
https://#Intent;package=<PACKAGE_NAME>;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;scheme=https;end
But it only works if I add the supported links from the app info, which has to be done manually. I am not sure if the fix for this is to be done in android on is there a way to handle this from the website?

Mobile apps email verification take user to webpage not in app?

How are you guys doing email verification in your mobile apps? I noticed that the link will take the user to the webpage and realized this isn’t the desired outcome. I’d rather they be taken into the app and from their have their email address verified so that afterward they are still in the app instead of in the mobile website.
Take a look here, it might help: https://developer.android.com/training/app-links/verify-site-associations
It says :
Android App Links are a special type of deep link that allow your
website URLs to immediately open the corresponding content in your
Android app (without requiring the user to select the app).

Link that ignores applink

Have a website, want to link to another page of it, and if the user has the android app installed give the option to view it in the website or app...
But not using the android "open with" screen, as often users will select "always" thus hiding the option.
So need a link that forces it to open in browser even though there is a app that could accept that link.
One solution is using www.example.com for applinks and example.com for website
Ended up doing it differently.
Now if it detects "android" in the user agent making the request it shows a selection box with these options:
- link to the index page. This will offer to open in app if installed, or do nothing otherwise.
- download link to app
- close selection box and continue with web version.
EDIT: misread the question. This answer is not a valid solution.
You could also accomplish this with Verified App Links. This would have users default to the app and not be shown the selection screen at all unless they go to Settings and override it.

Facebook Deep linking for android app

I have a application and i have facebook page for the same.now whenever a user clicks on Use app(call to action) button on android device whether it is facebook android app or user is logged in from browser I need to open my app installed in user's phone.
I have searched so much but came across some old posts as facebook has introduces applinks.org meanwhile.
So I am not getting how to do this thing.
When you're setting up the Call To Action button on your page, you need to select App:
Then you will fill in a URL using your app's custom URL scheme in the Deep Link box (that's what actually launches your app on the visitor's device), and the package name of your app in the Package Name box (I believe Google uses this for verification purposes).
If you haven't set up a custom URL scheme yet, this Facebook docs page explains how. That will take care of opening the app (myApp://), but if you're wanting to go to a specific piece of content (myApp://path/to/content), then you also need to follow these directions.

HTML button to open Mobile Apps

I am developing a responsive website and it will have a login button. This login button should redirect to an application installed on the users phone.
Is it possible to create an html/css button and once clicked, it opens up an installed application on your mobile whether its android or ios ?
Many thanks for your help guys !
Open app:
http://www.techrepublic.com/blog/software-engineer/web-to-app-interoperability-launch-your-android-app-from-the-web/
Using an intent to direct the user to the app download page:
http://www.techrepublic.com/blog/software-engineer/web-to-app-interoperability-launch-your-android-app-from-the-web/
Here is a link to some of apple's in-app url schemes, not all of the apps have schemes, but you might be able to find them in the developer notes of whatever app you're linking to.
https://developer.apple.com/library/safari/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html

Categories

Resources