Aym*_*yer 8 ios firebase-authentication flutter apple-sign-in
我正在使用 Flutter 和 Firebase 身份验证开发一个应用程序。
\n我尝试在我的登录页面中添加 Apple 登录。
\n我正在遵循本教程https://dev.to/offlineprogrammer/flutter-firebase-authentication-apple-sign-in-1m64。
\n它有效,Apple 打开我可以登录的组件\n
但是当我想插入我的密码时,它会无限加载。如果我输入错误的密码,它会立即失败
\n\n我没有任何日志,我的代码卡在
\nfinal appleCredential = await siwa.SignInWithApple.getAppleIDCredential(\n scopes: [\n siwa.AppleIDAuthorizationScopes.email,\n siwa.AppleIDAuthorizationScopes.fullName,\n ],\n nonce: nonce,\n );\nRun Code Online (Sandbox Code Playgroud)\n我在 iOS 15.0 模拟器上尝试使用 flutter doctor 如下
\nDoctor summary (to see all details, run flutter doctor -v):\n[\xe2\x9c\x93] Flutter (Channel stable, 2.5.0, on macOS 11.4 20F71 darwin-arm, locale\n fr-FR)\n[\xe2\x9c\x93] Android toolchain - develop for Android devices (Android SDK version 30.0.3)\n[\xe2\x9c\x93] Xcode - develop for iOS and macOS\n[\xe2\x9c\x93] Chrome - develop for the web\n[\xe2\x9c\x93] Android Studio (version 4.1)\n[\xe2\x9c\x93] Android Studio (version 4.1)\n[\xe2\x9c\x93] Android Studio (version 4.1)\n[\xe2\x9c\x93] IntelliJ IDEA Ultimate Edition (version 2020.3.2)\n[\xe2\x9c\x93] VS Code (version 1.54.1)\n[\xe2\x9c\x93] Connected device (2 available)\n\n\xe2\x80\xa2 No issues found!\nRun Code Online (Sandbox Code Playgroud)\n
小智 16
这是一个迟到的答案,但如果你仍然面临它或将来有人出现:
很可能你正在使用无法登录的 iOS 模拟器,无论你尝试登录并检查密码多少次,我也去过那里......你需要使用真正的iOS。
另一个建议是,如果您尝试发送通知,它也无法在模拟器上工作,这在文档中非常清楚,但仍然有些人错过了它。
| 归档时间: |
|
| 查看次数: |
7720 次 |
| 最近记录: |