App getting crash when click on GoogleSignIn button

后端 未结 8 718
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 15:54

I am using Google Sign-In SDK 4.0.1. When I press googleSignInButton then app will be crash. And gave below error, how to fix this:

Terminating app due to un         


        
8条回答
  •  抹茶落季
    2020-12-01 16:24

    For those who came here from Flutter because of the crash of google_sign_in package on iOS devices - I've already covered this issue here

    Long story short: try to explicitly set properties hostedDomain and clientId.

    GoogleSignIn googleSignIn = GoogleSignIn( 
      scopes: ['email', 'profile'],
      hostedDomain: "", 
      clientId: "",);
    

提交回复
热议问题