Firebase dynamic link, clear it after using once

前端 未结 3 762
孤城傲影
孤城傲影 2021-01-17 15:31

https://firebase.google.com/docs/dynamic-links/android/receive

states that

Calling getDynamicLink() retrieves the link and clears that data

3条回答
  •  遥遥无期
    2021-01-17 16:08

    The answer is in the documents:

    You must call getDynamicLink() in every activity that might be launched by the link, even though the link might be available from the intent using getIntent().getData(). Calling getDynamicLink() retrieves the link and clears that data so it is only processed once by your app.

    You normally call getDynamicLink() in the main activity as well as any activities launched by intent filters that match the link.

提交回复
热议问题