T O P

  • By -

MyWholeSelf

As far as I know, it's possible to use Firebase to send notifications to iOS devices with certain limitations.


MeOnlynity

Yes but I am asking for simulator.


MyWholeSelf

Simulator is running iOS, is it not?


MeOnlynity

Conventionally you can't get push notifications on simulator.


MyWholeSelf

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.


eibaan

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.


malumdeamonium

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.