gpt4 book ai didi

iOS 在 Google SignIn React Native Expo 32 上崩溃

转载 作者:行者123 更新时间:2023-11-29 05:57:01 25 4
gpt4 key购买 nike

我有一个独立的应用程序,最近从 Expo 31 更新到 Expo 32。在新版本中,Google 登录已完全更改,我必须重做代码。

Android 版本无法在本地运行(它会出现失败错误),但当我上传到商店时,它运行正常。但是,当我单击 Google 登录按钮时,IOS 版本在本地和商店中都失败(它使整个应用程序崩溃),特别是这行代码 await GoogleSignIn.signInAsync();

这就是我尝试登录的方式

await GoogleSignIn.initAsync({
clientId: clientId,
scopes: ['profile', 'email'],
behavior: 'web'
});


await GoogleSignIn.askForPlayServicesAsync();
result = await GoogleSignIn.signInAsync();

enter image description here

最佳答案

我在这里找到了答案=> https://stackoverflow.com/a/47290909/1840606

我仍然不知道为什么它没有为我创建 url 类型,我必须手动添加它。

关于iOS 在 Google SignIn React Native Expo 32 上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55056937/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com