I\'m creating a deep/dynamic link following this github project.
Here\'s the link which is getting created: https://appcode.app.goo.gl/?link=http://example.co
You are reciving the deeplink properly
This is the complete link generated that contains info like the apn : the package name of your app, the information to know for example which app need to be opened
https://appcode.app.goo.gl/?link=http://example.com/-example&apn=com.abc.xxx&amv=16&ad=0&extraParameter=null
This is your deeplink link=http://example.com/-example. So, if you want to add more parameters you can do it here, like in the example bellow
link=http://example.com/-example&blabla.
So you have this as result https://appcode.app.goo.gl/?link=http://example.com/-example&blabla&apn=com.abc.xxx&amv=16&ad=0
If you want this portion can be encoded http://example.com/-example&blabla
You can try this and let me know.
You can refer this info here https://firebase.google.com/docs/dynamic-links/android
I also faced this problem. The issue was the link which I'm receiving is "Long link". We can create two types of links from firebase:
So that's why I'm facing this issue. I solved it by fetching the whole link from
Uri uriData = intent.data
And to fetch particular query param from the link:
String email = uriData.getQueryParameter("email")
I hope it will help anyone!!
replace
<data
android:host="xxx.abc.com"
android:scheme="https"/>
with
<data
android:host="example.com"
android:scheme="http"/>