Cloud Messaging for macOS (Flutter) 不接收消息
Cloud Messaging for macOS (Flutter) not receiving messages
我正在尝试让我的 Flutter 应用程序使用云消息传递接收消息。这在 iOS 上运行良好,但对于我的 Flutter macOS 应用程序,无论我尝试什么,它都不起作用。
关于如何执行此操作的在线文档似乎很少,甚至 the official documentation 也不是特别清楚。
我尝试过的:
- 清理扑动
- 删除 pods 并重建
- 从 Firebase 的测试页面和 Firebase 函数发送消息
请问我是不是记错了:
- 文档中说
For iOS; you must have a physical iOS device to receive messages.
,这是否意味着当 运行 macOS 应用程序时我也应该做一些不同的事情?
- 它在文档中所说的
This guide applies to both iOS & macOS Flutter apps, repeat each step for the platforms you require
,它的字面意思是每一步吗,因为有些步骤似乎没有重复,例如....
- 我可以重复使用同一个 Firebase iOS app and Apple key 还是我需要创建一个单独的 Firebase iOS 应用程序和单独的 Apple 密钥?
- 我可以使用与 iOS 实施相同的 identifier 吗?
非常感谢!
对于尝试此操作的任何其他人,事实证明使用默认构建方法通知不应该在 MacOS 上工作。相反,您必须使用经过公证的应用程序版本。非常感谢 Markus Aksli,他的回复如下:
No, you can just run on your mac, however you need a build that has
been notarized by apple (https://github.com/FirebaseExtended/flutterfire/issues/5717)
You can use the same identifier and key
我正在尝试让我的 Flutter 应用程序使用云消息传递接收消息。这在 iOS 上运行良好,但对于我的 Flutter macOS 应用程序,无论我尝试什么,它都不起作用。
关于如何执行此操作的在线文档似乎很少,甚至 the official documentation 也不是特别清楚。
我尝试过的:
- 清理扑动
- 删除 pods 并重建
- 从 Firebase 的测试页面和 Firebase 函数发送消息
请问我是不是记错了:
- 文档中说
For iOS; you must have a physical iOS device to receive messages.
,这是否意味着当 运行 macOS 应用程序时我也应该做一些不同的事情? - 它在文档中所说的
This guide applies to both iOS & macOS Flutter apps, repeat each step for the platforms you require
,它的字面意思是每一步吗,因为有些步骤似乎没有重复,例如.... - 我可以重复使用同一个 Firebase iOS app and Apple key 还是我需要创建一个单独的 Firebase iOS 应用程序和单独的 Apple 密钥?
- 我可以使用与 iOS 实施相同的 identifier 吗?
非常感谢!
对于尝试此操作的任何其他人,事实证明使用默认构建方法通知不应该在 MacOS 上工作。相反,您必须使用经过公证的应用程序版本。非常感谢 Markus Aksli,他的回复如下:
No, you can just run on your mac, however you need a build that has been notarized by apple (https://github.com/FirebaseExtended/flutterfire/issues/5717)
You can use the same identifier and key