.NET MAUI Plugin.Firebase.iOS 不存在

huangapple go评论69阅读模式
英文:

.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; &lt;-- Error: code is &quot;unreachable&quot; 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

huangapple
  • 本文由 发表于 2023年2月20日 00:21:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/75501573.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定