Now It Is Possible!!!
The Xcode 11.4 beta is released with simulator supporting remote push notifications.
To test remote push simply dragged APNS file onto the target simulator. This method required the payload to contain Simulator Target Bundle key. Otherwise, you would get this error message.
“Invalid push notification: The file does not contain a valid JSON payload or the Simulator Target Bundle key is missing."
So your payload file will be like:
{
"aps" : {
"alert" : {
"title" : “Namaste”,
"body" : “This is iOS development notification test“
},
},
"Simulator Target Bundle": "com.sarunw.example-xcode-11-4"
}
Following simctl command in terminal will help to sent notifications:
xcrun simctl push <device> <bundle-identifier> <path-to-apns-file>