You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android/iOS deeplink not working due to URI fragment #3
I am super excited to see a dedicated flutter package for Supabase! Kudos for that 👏
Has anyone gotten deeplinks to work on Android and iOS @phamhieu ?
I report this, expecting it not to work. Should it somehow work for you, I will be glad to scrutinize a working example until I get mine to work.
I just can't deeplinks to work on Android (and iOS probably as well). I came across this bug in April, when I tried to enable the deeplink logins with Supabase.
There is a bug inside Flutter, where it ignores the URI fragment, which Supabase uses by design choice, e.g. my-url.com?queryParam=unrelatedToSupabase#accessToken=...
Everything after the URI fragment (#, also called anchor) gets cut from the deeplink URL.
@himeshp That is awesome. I got the example working as well.
But something is wrong. I am using an http/https deeplink address to get it working. Does your deeplink trigger a different type of Flutter function, which does not remove the hashtag/URI fragment?
The supabase_flutter package is handling deeplinks using the uni_links package. This has its own platform specific code, to handle deeplinks, thus not relying on the Flutter engine code.
Therefore deeplinks work here without a Problem.
I thank @phamhieu for developing this awesome plugin. This will help me finally achieve deeplinks on Android and iOS and not having to wait for the flutter framework fix to be deployed.
Furthermore the Singleton approach to initializing Supabase is much better than my global variable I am currently using.
So thanks a lot.
Activity
himeshp commentedon Jul 14, 2021
the example with GitHub login works fine, did you get a chance to check that code?
nstrelow commentedon Jul 14, 2021
@himeshp That is awesome. I got the example working as well.
But something is wrong. I am using an http/https deeplink address to get it working. Does your deeplink trigger a different type of Flutter function, which does not remove the hashtag/URI fragment?
Working debug:
onReceivedAuthDeeplink uri: io.supabase.flutterdemo://login-callback#access_token=...
himeshp commentedon Jul 14, 2021
hey, I have not got a chance to check the code yet. I just checked the sample code for reference purposes.
I am waiting for the support of native pop-up support for apps, to start further using supabase as backend.
maybe @phamhieu can further guide here.
nstrelow commentedon Jul 14, 2021
Conclusion
The supabase_flutter package is handling deeplinks using the uni_links package. This has its own platform specific code, to handle deeplinks, thus not relying on the Flutter engine code.
Therefore deeplinks work here without a Problem.
I thank @phamhieu for developing this awesome plugin. This will help me finally achieve deeplinks on Android and iOS and not having to wait for the flutter framework fix to be deployed.
Furthermore the Singleton approach to initializing Supabase is much better than my global variable I am currently using.
So thanks a lot.
chore(telosnex): register 3 TLA+-derived fix branches
chore(telosnex): register 3 TLA+-derived fix branches
chore(telosnex): register 3 TLA+-derived fix branches