Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Android: handle deep links

On the Firebase documentation:

it says:

To receive the deep link, call the getInvitation method

However the deep links, surviving installations, seem to work even without implementing the code described there.

So, is it really needed to call the getInvitation method? what is it exactly for?

like image 637
Daniele B Avatar asked Oct 04 '16 00:10

Daniele B


1 Answers

getInvitation() is to handle the deep link intent. It is recommended to implement it as described here:

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

like image 130
random Avatar answered Nov 13 '22 11:11

random