lucavenir / go_router_riverpod

An example on how to use Riverpod + GoRouter
460 stars 68 forks source link

Extend to include support for Firebase dynamic links #4

Open sischnei opened 1 year ago

sischnei commented 1 year ago

I'm trying to extend your example to support firebase dynamic links, both on the Web as well as in Android. However, I'm struggling to get it working in conjunction with authentication. I tried to implement it as shown in this tutorial which also uses go_router + riverpod to get dynamic links working, but I have only been able to get it working on Android.

On the web - as soon as I implement the providers as shown in your example, whenver I load a link fresh it makes a cold start of the application and ends up redirecting me to my main page (after I briefly see the correct location). Any hints on that?

lucavenir commented 1 year ago

Hi @sischnei

I'd have to look at your actual implementation, with a reproducible example, to lend a hand the way you need.

Consider that this repo exists to show off simple authentication use cases; while surely I'd love to accommodate every request the community has, some edge cases should be solved on their own.

Nonetheless, if we find some sort of solution, this could be great to other users using Firebase Dynamic Links, so I'll wait for you. Let me know.