I'm new to flutter and I've struggled with the google_sign_in package on IOS.
On android, everything is working smoothly but on IOS, when I use GoogleSignIn().signIn() from google_sign_in it keeps opening a webpage for Google sign in flow. For now everything is normal.
But when I submit my email then my password, a screen with "This connection is not private..." appears.
You have 2 options. Show details button or go Back. Clicking on show details then clicking on visit this website button, is redirecting me on Google Home page and not closing the webview and I'm not logged in my app.
The only option when I'm on the google Home page is to click on Cancel to go back in my flutter app.Screenshot
Below my code:
final GoogleSignInAccount googleSignInAccount =
await GoogleSignIn().signIn();
final GoogleSignInAuthentication googleSignInAuthentication =
await googleSignInAccount.authentication;
final AuthCredential credential = GoogleAuthProvider.credential(
accessToken: googleSignInAuthentication.accessToken,
idToken: googleSignInAuthentication.idToken,
);
final UserCredential authResult =
await FirebaseAuth.instance.signInWithCredential(credential);
question from:
https://stackoverflow.com/questions/66060201/flutter-firebase-google-sign-in-this-connection-is-not-private-on-ios-then-redir 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…