简体   繁体   English

IOS Firebase 连接卡在“运行您的应用程序以验证安装”上

[英]IOS firebase connection stuck on 'Run your app to verify installation'

I'm working on a Flutter application on both iOS and Android, for this I need to use notifications and I made it work on android successfully after some hard part ( flutter clean FTW ).我正在 iOS 和 Android 上开发 Flutter 应用程序,为此我需要使用通知,并且在经过一些困难的部分( flutter clean FTW )之后,我让它在 android 上成功运行。

I now wanted to do the same for iOS and I have problems connecting the app to the firebase backend, I followed step by step the Tutorial on the firebase_messaging pub.dev but I can't get it to connect on the 5th and last task on the the firebase backend.我现在想为 iOS 做同样的事情,但我在将应用程序连接到 firebase 后端时遇到了问题,我一步一步地遵循了 firebase_messaging pub.dev 上的教程,但我无法在第 5 个和最后一个任务上连接它Firebase 后端。 It's stuck on 'Run your app to verify installation, you might need to uninstall and reinstall it again'.它卡在“运行您的应用程序以验证安装,您可能需要卸载并重新安装它”。

Of course I downloaded the GoogleService-Info.plist and put it next to info.plist and I've added the FirebaseAppDelegateProxyEnabled key as well as this code in the AppDelegate :当然,我下载了 GoogleService-Info.plist 并将其放在 info.plist 旁边,并且我在 AppDelegate 中添加了 FirebaseAppDelegateProxyEnabled 键以及此代码:

if #available(iOS 10.0, *) {
  UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
}

I also made sure to activate the push notifications and background modes capabilities on Xcode.我还确保在 Xcode 上激活推送通知和后台模式功能。

But somehow it still doesn't work at all and stuck on the same message, yet I can use the firebase tool to get the user Token for example ?!?!但不知何故,它仍然根本不起作用并停留在同一条消息上,但我可以使用 firebase 工具来获取用户令牌,例如?!?!

I also made the call so that the user enable the app to get notifications.我还拨打了电话,以便用户启用应用程序以获取通知。

Here's my flutter doctor :这是我的颤振医生:

在此处输入图片说明

Can anyone help me with this?谁能帮我这个? I found a lot of issues on GitHub for this but no clear answer have been given yet.我在 GitHub 上为此发现了很多问题,但尚未给出明确的答案。 I don't have any error message or really anything more that could help identify what's wrong there.我没有任何错误消息或其他任何可以帮助确定问题所在的信息。

Thanks a lot in advance非常感谢提前

因此,经过很多时间,我最终确实在我的 IO 设备上收到了通知,因为我拥有 Iphone 的 Firebase 令牌,我设法向该设备发送了通知,即使它仍然没有连接到 Firebase 后端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM