supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
720 stars 173 forks source link

When I use facebook sign on, and if I already have facebook app in my phone then it should redirect to the facebook mobile app instead of browser #987

Open vipul8815 opened 2 months ago

vipul8815 commented 2 months ago

[✓] Flutter (Channel stable, 3.19.5, on macOS 14.3.1 23D60 darwin-arm64, locale en-IN) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.3) [✓] VS Code (version 1.91.1)

String redirect_url = 'desipass://call-back'; await supabase.auth.signInWithOAuth( OAuthProvider.google, redirectTo: redirect_url, ); await supabase.auth.signInWithOAuth( OAuthProvider.facebook, redirectTo: redirect_url, );

I am using above function code but function not open gmail or facebook(my phone have already there both app), Its open browser

dshukertjr commented 2 months ago

For Google sign-in, you can use native Google sign-in that we offer to get your desired effect.

https://supabase.com/docs/guides/auth/social-login/auth-google?queryGroups=environment&environment=client&queryGroups=framework&framework=remix&queryGroups=platform&platform=flutter