I am working on one application,What i am trying to do is first user will register from my app,after successful registration,one confirmation link will get in gmail,now from that mail if user will click on confirmation link,my app should open,Is it possible? can any one help me with that?
Asked
Active
Viewed 272 times
-3
-
Have a look at https://branch.io/. You will have to configure your app for deep linking, – Ragesh Ramesh Mar 01 '16 at 06:36
-
You can do that by following [this](http://stackoverflow.com/questions/3469908/make-a-link-in-the-android-browser-start-up-my-app) post. – zionpi Mar 01 '16 at 06:36
-
@zionpi i already tried that answer but still not working – Aditya Vyas-Lakhan Mar 01 '16 at 06:42
-
Possible duplicate of [Launch custom android application from android browser](http://stackoverflow.com/questions/2958701/launch-custom-android-application-from-android-browser) – Yusuf K. Mar 01 '16 at 07:18
-
@YusufK. first read question carefully and i also tried that link, – Aditya Vyas-Lakhan Mar 01 '16 at 07:20
-
@Aditya when you send an email with confirmation link and user click the link, when you confirm user's action, redirect user to url(something like my.special.scheme://other/parameters/here) as described on http://stackoverflow.com/q/2958701/517134 may it help? – Yusuf K. Mar 01 '16 at 07:25
3 Answers
2
you must do some changes your manifest. Do changes in launcher or default activity like below:
<activity
android:name=".MainActivity"
android:configChanges="keyboardHidden|orientation|keyboard|screenSize"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="yoursitedomain.com"
android:scheme="http" />
<data
android:host="www.yoursitedomain.com"
android:scheme="http" />
</intent-filter>
</activity>
BROWSABLE and data tags help you.

Haniyeh Khaksar
- 774
- 4
- 20
-
@Aditya can you copy link that you want open with app? and copy your manifest code here? – Haniyeh Khaksar Mar 01 '16 at 07:10
-
Your answer helped me,i change in my manifest,,it worked thanks..aceepted and +1 – Aditya Vyas-Lakhan Mar 01 '16 at 07:26
0
JavaScript can call android from webView
.
If you can show that email in your own webView
.
You can programmatically call Android Activity.
I was call activity, function, dialog
from webView
.

Aditya Vyas-Lakhan
- 13,409
- 16
- 61
- 96

Rashiduzzaman Khan
- 287
- 2
- 11
0
Yes it possible but the logic is a bit tricky.
Prerequisite:
Google Cloud Messaging (GCM)
Any back-end running in the
cloud
.
The idea here is to trigger the GCM
via the link you send in the email.
When user clicks the link your web back-end should kick/trigger the GCM
, then the GCM
will open your app for you.

Enzokie
- 7,365
- 6
- 33
- 39