My app uses Firebase. I am trying to send push notification to app running in simulator. When I run the app in iOS 10 Simulator, it successfully generates InstanceID token but shows warning that
notifications are not supported in the simulator.
I read somewhere on stackoverflow that it is possible to send push notification on iOS 10 simulator. Is it true?
You cannot get push notifications inside the simulator. You can, however simulate getting a push notification by making a button or whatever that calls application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) with a notification dictionary. This is useful for testing that the rest of your logic is working before you deploy to device to test that the final format of the push is what you expect it to be.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With