[英]iOS Firebase Push notification not working on simulator with Xcode 11.5 and iOS 13
我嘗試過 Firebase 推送通知,但它不起作用。 遠程消息顯示在帶有負載的控制台上,但未在模擬器上顯示通知。 我使用 Xcode 11.5 和 iOS 13。
您可以按照本文在模擬器中測試推送通知。 要測試直接從 firebase 發送的遠程通知,您將需要一個物理設備。 我使用的是 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
以下是在模擬器中測試推送通知的摘要:
test_push_notification.apns
的文件xcrun simctl push booted test_push_notification.apns
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.