简体   繁体   English

带有 Firebase 的 Mac Catalyst 应用程序不会收到推送通知

[英]Mac Catalyst App with Firebase won't receive push notifications

I have an iOS app with push notifications set up and the feature is working fine on iOS devices.我有一个设置了推送通知的 iOS 应用程序,该功能在 iOS 设备上运行良好。 I now build a Mac Catalyst app of my iOS app and I was trying to get the push notifications to work but it doesn't work.我现在为我的 iOS 应用程序构建了一个 Mac Catalyst 应用程序,我试图让推送通知工作,但它不起作用。

I'm receiving the registration token in func messaging(_ messaging: Messaging,didReceiveRegistrationToken fcmToken: String) but I'm not able to get any push notifications.我在func messaging(_ messaging: Messaging,didReceiveRegistrationToken fcmToken: String)收到注册令牌,但我无法收到任何推送通知。

In the settings app on the Mac I also see that my app is set up for notifications.在 Mac 上的设置应用程序中,我还看到我的应用程序设置了通知。

Am I missing something out?我错过了什么吗?

I'm not sure about Firebase, but OneSignal introduced support for Catalyst Push notifications.我不确定 Firebase,但OneSignal引入了对 Catalyst 推送通知的支持。 In case Firebase doesn't work out, you can try using OneSignal for Mac push by following the instructions here .如果 Firebase 不起作用,您可以按照此处的说明尝试使用 OneSignal for Mac 推送。

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

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