Closed nickf2k closed 9 months ago
After 3 hours, I tried the solution in this article and it worked. https://stackoverflow.com/questions/42197729/app-getting-crash-when-click-on-googlesignin-button thanks for reading
@nickf2k I tried the solution in that link and I'm still running into the issue. What exactly did you end up adding to Info.plist
?
My personal issue is that the app crashes but doesn't give ANY error message, so I don't know how to debug it... I tried:
But no result...
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth, Firebase UI OAuth Google
What platform(s) does this bug affect?
iOS
List of dependencies used.
flutter pub deps -s list
Steps to reproduce
class MyApp extends StatelessWidget { const MyApp({super.key});
// This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp.router( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), routerConfig: AppRouter.router, // home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } }
class LoginScreen extends StatelessWidget { const LoginScreen({Key? key}) : super(key: key);
@override Widget build(BuildContext context) { return Scaffold( body: SignInScreen( showAuthActionSwitch: true, actions: [ AuthStateChangeAction((context, state) { final user = switch (state) { SignedIn(user: final user) => user, CredentialLinked(user: final user) => user, UserCreated(credential: final cred) => cred.user, _ => null, };
} }
Lost connection to device. Failed to send request: {"jsonrpc":"2.0","id":"109","method":"resume","params":{"isolateId":"isolates/3700648802678399"}} Failed to send request: {"jsonrpc":"2.0","id":"110","method":"invoke","params":{"isolateId":"isolates/3700648802678399","targetId":"objects/199","selector":"toString","argumentIds":[],"disableBreakpoints":true}} Failed to send request: {"jsonrpc":"2.0","id":"111","method":"invoke","params":{"isolateId":"isolates/3700648802678399","targetId":"objects/200","selector":"toString","argumentIds":[],"disableBreakpoints":true}}