1

i need to launch my app when click on link that is received by sms or email.I mean, the person who receives the SMS simply taps on the link provided, and that launches the application.

Divyesh Rudani
  • 231
  • 1
  • 2
  • 13
  • 4
    Possible duplicate of [Make a link in the Android browser start up my app?](http://stackoverflow.com/questions/3469908/make-a-link-in-the-android-browser-start-up-my-app) – Vladyslav Matviienko Jan 24 '17 at 05:50
  • 1
    Possible duplicate of [Launch an application from another application on Android](http://stackoverflow.com/questions/3872063/launch-an-application-from-another-application-on-android) – Iamat8 Jan 24 '17 at 05:51
  • you can implement of app invite using dynamic link of firebase. – Vishal Patoliya ツ Jan 24 '17 at 06:16

1 Answers1

2

Which ever Activity you want to open, when Link is clicked Need to be use IntentFilter in Menifest like this

<activity
            android:name=".interacting.InteractWithApps"
            android:parentActivityName=".index.IndexActivity">
            <intent-filter>
                <data
                    android:host="www.domain.com"
                    android:scheme="http" />

                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

You also need to define link schema and host

You should follow as per this link

Milind Mevada
  • 3,145
  • 1
  • 14
  • 22