如何测试是Google签名在工作中或不在flutter应用程序上

发布于 2025-02-01 02:49:23 字数 660 浏览 4 评论 0原文

我与团队一起制作了一个Flutter应用程序。但是,一旦iOS/runner/info.plist更改,Google登录就被打破了。解决此问题后,我想编写一个测试来测试此问题。

重新产生此错误的方法:

  1. 单击“继续”:

”在此处输入图像说明“

  1. 选择我的电子邮件:

”

这些步骤后,应用程序将立即关闭。

我正在尝试使用集成测试来测试它再次破裂,但是我无法在步骤1中的集成测试中单击“继续”按钮,因为那不是我的Flutter应用程序的小部件。颤动的集成测试似乎只能操纵Flutter应用程序中的小部件。

I working on a flutter APP with my team. But once the ios/Runner/Info.plist change, the google sign-in was broken. I want to write a test to test this problem after this problem is solved.

The way to re-produce this error:

  1. click the "Continue":

enter image description here

  1. Select my email:

enter image description here

After these steps, the APP will close immediately.

I'm trying to use an integration test to test it from preventing it broken again, But I cannot click the "Continue" button in the integration test in step 1 because that is not my flutter APP's widget. The flutter integration test seems can only manipulate the widget in the flutter APP.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半岛未凉 2025-02-08 02:49:23

iOS/Runner/info.plist更改是什么意思?

您的意思是添加cfbundleurltypes吗?

如果是这种情况,请确保在info.plist和googleservice-info.plist中都相同。

还要尝试使用XCode运行,并在App Craches沟中检查控制台中出现什么错误。

What do you mean by the ios/Runner/Info.plist change?

do you mean after adding the CFBundleURLTypes?

if that is the case then make sure that the googleusercontent is the same in both the Info.plist and GoogleService-Info.plist.

Also try running using Xcode and check what error appears in Console when the app craches.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文