0

The problem is I don't know how to make a deep link from this link "https://developer.wisdom.com/j?otp=2etrrf-u57rury5-5u5u57r&email=test@test.com&key=243464yrhffutjt758586869jg869t9"

i have tried

<data android:scheme="https"
                        android:host="developer.wisdom.com"
                        android:pathPrefix="/"                      
                        />

I want the URL above to open my app when clicked and also be able to access the otp and key

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
wise4rmgod
  • 33
  • 1
  • 6

1 Answers1

0

When you pass query parameters in a deeplink URL, the Intent that starts the activity that listens the URL contains the query parameters in the Extras. You can access then inside the onCreate method using

getIntent().getExtras(). getString("email");

Edit: note that the intent is not fired when you type the url on the Chrome. The app should be opened only when you click a link or receive a redirect

Rander Gabriel
  • 637
  • 4
  • 14
  • Thanks for the quick response, this URL " https://developer.wisdom.com/j?otp=2etrrf-u57rury5-5u5u57r&email=test@test.com&key=243464yrhffutjt758586869jg869t9" doesn't open my app. but if I use " developer.wisdom.com " it will open my app – wise4rmgod Aug 27 '19 at 19:50
  • Thanks guys, i finally found the answer – wise4rmgod Aug 29 '19 at 08:00
  • I was missing "s" in my host which is Http instead of Https – wise4rmgod Aug 29 '19 at 08:01