iosobjective-cfirebasefirebase-cloud-messagingapple-push-notifications

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. Remote message is displaying on console with payload but not showing the notification on simulator. I using Xcode 11.5 and iOS 13.

  1. added GoogleService-Info.plist to root folder
  2. did all code required for Firebase Push notification
  3. uploaded .p12 file on firebase console
  4. added push notification capability on Xcode

Solution

  • 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. 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

    Here is the summary for testing push notification in simulator: