How to video: https://youtu.be/zrpgzfmKZ7U
Xcode 11.4 introduced push notification sending to the iOS simulator. There is two ways hot to send them:
- by sending them from the terminal
- simple drag and drop APNS file to the simulator
apns file example : https://github.com/aivars/SimulatorPushNotifications/blob/master/test.apns Download and save on Desktop or create new file *.apns
Terminal command to send push notification: xcrun simctl push <Device> com.aivarsmeijers.pushNotifications test.apns
should be replaced with used simulator id. Simulator ID can be found using following terminal commands:
xcrun simctl list
instruments -s devices
Second works the best for me