Suman
Suman

Reputation: 1313

How to create a deep link in app?

I am working in app. There need to create a deep link. User can able to share particular item and user can open direct page from click link. I follow enter link description here

 <intent-filter >
          <!--  android:autoVerify="true"-->

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

            <data android:scheme="https"
                android:host="www.jobzminer.com"
                android:pathPrefix="/appplay" />

            <data android:scheme="jobzminer"
                android:host="appplay" />
   </intent-filter>

but when i put link into browser then its not working.

Upvotes: 2

Views: 2010

Answers (2)

Eric B.
Eric B.

Reputation: 4702

As mentioned in the comments, to update your url to: https://www.jobzminer.com/appplay. Also clear your browser as a default app.

To pass parameters, you could use query parameters. Change your url like this: https://www.jobzminer.com/appplay?param1=hello&param2=world

Then in your activity. Do this:

Intent intent = getIntent();
Uri data = intent.getData();
String param1 = data.getQueryParameter("param1");
String param2 = data.getQueryParameter("param2");

You can also see my answer here.

Upvotes: 2

Thahaseen
Thahaseen

Reputation: 74

Deeplinking can be well achieved by Branch SDK. They have amazing docs to integrate branch sdk and get going. Refer this link https://dev.branch.io/getting-started/sdk-integration-guide/guide/android/

Upvotes: 0

Related Questions