Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
366 views
in Technique[技术] by (71.8m points)

Flutter Firebase google_sign_in This connection is not private on IOS then redirect on Google home page

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...