Actually, Xcode 11.4 lets you send push notifications to a simulator. You just create a json file with the payload, and drop it on the simulator.
Scroll down to the bottom of How to Send Push Notifications to the iOS Simulator | by Sagun Raj Lage | Better Programming, where the payload is:
{
"Simulator Target Bundle": "np.com.sagunrajlage.TestPushNotifications",
"aps": {
"alert": "Push Notifications Test",
"sound": "default",
"badge": 1
}
}
This works fine for basic testing, but doesn鈥檛 use APNS. You can use the sendEncrypted.php file from Part 2 of this course, translating the json payload into php. You might also need to add this HTTPHEADER:
'apns-push-type: ' . 'alert'