Apple introduced the ability to allow developers to test remote notifications on the Apple Watch simulator with the release of Xcode 6.2. This is achieved using a local file, PushNotificationPayload.apns
, to mimic the JSON payload file information that is sent by the Apple Push Notification service. Here are the steps to perform:
Select the
PushNotificationPayload.apns
file located within the folder at ShoppingList WatchKit Extension | Supporting Files in the project navigation window.Ensure that the
PushNotificationPayload.apns
file is displayed within the editor window, as shown in the following screenshot:Next, modify the
PushNotificationPayload.apns
file by entering the following highlighted code sections:{ "aps": { "alert": { "body": "ShoppingList Test Message.", "title": "Custom Message", "receipt": "Custom Receipt" }, "category": "ORDER_PLACED" }, "WatchKit...