英文:
.NET MAUI Plugin.Firebase.iOS does not exist
问题
我正在使用新的 Plugin.Firebase 插件来在干净的 .NET Maui 应用程序项目中使推送通知功能工作。
我已经安装了 https://github.com/TobiasBuchholz/Plugin.Firebase 但由于某种原因,此代码是 "unreachable" 或者在命名空间中不存在。
#if IOS
using Plugin.Firebase.iOS; <-- 错误:代码是 "unreachable" 或者在命名空间中不存在
#else
using Plugin.Firebase.Android;
#endif
是否有其他人遇到同样的问题或者知道任何解决问题的方法?
Android 似乎按预期工作,但我不明白为什么。我已经比较了 iOS 和 Android 的源代码,命名空间在这两种情况下都应该存在:
https://github.com/TobiasBuchholz/Plugin.Firebase/blob/development/src/Android/CrossFirebase.cs
https://github.com/TobiasBuchholz/Plugin.Firebase/blob/development/src/iOS/CrossFirebase.cs
英文:
I'm using the new Plugin.Firebase plugin to get push notification function working with a clean .NET Maui app-project.
I have installed https://github.com/TobiasBuchholz/Plugin.Firebase but for some reson this code is "unreachable" or it does not exist in namespace.
#if IOS
using Plugin.Firebase.iOS; <-- Error: code is "unreachable" or it does not exist in namespace
#else
using Plugin.Firebase.Android;
#endif
Does anyone else have the same problem or knows any workarount the problem.
Android seems to work as it should to, but I dont understand why. I have compared the source code of both iOS and Android and the namespace should exist in both cases:
https://github.com/TobiasBuchholz/Plugin.Firebase/blob/development/src/Android/CrossFirebase.cs
https://github.com/TobiasBuchholz/Plugin.Firebase/blob/development/src/iOS/CrossFirebase.cs
答案1
得分: 1
似乎有一个关于它的错误报告,它指向另一个错误,该错误又指向另一个错误。
链接:https://github.com/TobiasBuchholz/Plugin.Firebase/issues/125
英文:
Seems there is a bug report on it, it refers to another bug which refers to another one.
https://github.com/TobiasBuchholz/Plugin.Firebase/issues/125
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论