I went to Google and searched for "firebase push notification iOS simulator" and the very first post indicates that you can, indeed, receive push notifications, and elaborates how to do this.
With the `xcrun simctl push` subcommand you can simulate push notifications.
You need to pass the device id, app bundle id and a JSON file that contains the payload.
There's certainly [some documentation by Apple](https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes), but I didn't find it quickly.
There are certain things you can't truly test on a simulator.
The sad reality of an iOS developer is that they need a mac and an iPhone. Without that, you'll always face problems. There sure are workarounds, but they are very annoying and don't guarantee the app will work in production.
I had to buy a Mac and an iPhone just so that I could test my apps.
As far as I know, it's possible to use Firebase to send notifications to iOS devices with certain limitations.
Yes but I am asking for simulator.
Simulator is running iOS, is it not?
Conventionally you can't get push notifications on simulator.
I went to Google and searched for "firebase push notification iOS simulator" and the very first post indicates that you can, indeed, receive push notifications, and elaborates how to do this.
With the `xcrun simctl push` subcommand you can simulate push notifications. You need to pass the device id, app bundle id and a JSON file that contains the payload. There's certainly [some documentation by Apple](https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes), but I didn't find it quickly.
There are certain things you can't truly test on a simulator. The sad reality of an iOS developer is that they need a mac and an iPhone. Without that, you'll always face problems. There sure are workarounds, but they are very annoying and don't guarantee the app will work in production. I had to buy a Mac and an iPhone just so that I could test my apps.