[英]iOS Firebase Push notification not working on simulator with Xcode 11.5 and iOS 13
I have tried for Firebase Push notification but its not working.我尝试过 Firebase 推送通知,但它不起作用。 Remote message is displaying on console with payload but not showing the notification on simulator.
远程消息显示在带有负载的控制台上,但未在模拟器上显示通知。 I using Xcode 11.5 and iOS 13.
我使用 Xcode 11.5 和 iOS 13。
You can follow this article for testing push notifications in the simulator.您可以按照本文在模拟器中测试推送通知。 For testing remote notifications that is sent directly from firebase you will need a physical device.
要测试直接从 firebase 发送的远程通知,您将需要一个物理设备。 I am using xcode 11.6 and during the registration process it is showing a message in the console:
Error! iOS Simulator does not support push! Please test on a real iOS device. remote notifications are not supported in the simulator
我使用的是 xcode 11.6,在注册过程中,它在控制台中显示一条消息:
Error! iOS Simulator does not support push! Please test on a real iOS device. remote notifications are not supported in the simulator
Error! iOS Simulator does not support push! Please test on a real iOS device. remote notifications are not supported in the simulator
Here is the summary for testing push notification in simulator:以下是在模拟器中测试推送通知的摘要:
test_push_notification.apns
test_push_notification.apns
的文件xcrun simctl push booted test_push_notification.apns
xcrun simctl push booted test_push_notification.apns
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.