Why full/long dynamic link is not getting retrieved/received?

后端 未结 3 591
再見小時候
再見小時候 2020-12-07 04:40

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

相关标签:
3条回答
  • 2020-12-07 04:56

    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

    0 讨论(0)
  • 2020-12-07 04:56

    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:

    1. Short Link https://appcode.app.goo.gl/?email=abc@gmail.com
    2. Long Link https://appcode.app.goo.gl/?link=http://example.com/-example&apn=com.abc.xxx&amv=16&ad=0&extraParameter=null

    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!!

    0 讨论(0)
  • 2020-12-07 05:07

    replace

    <data
           android:host="xxx.abc.com"
           android:scheme="https"/>
    

    with

    <data
           android:host="example.com"
           android:scheme="http"/>
    
    0 讨论(0)
提交回复
热议问题