You cannot receive push notifications inside the simulator. You can, however, simulate receiving a push notification by creating a button or something else that calls the application (_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) using the notification dictionary. This is useful for testing that the rest of your logic works before you deploy the device to verify that the final click format is what you expect from it.
source share