From 4aef5e6708197ff63ddf67106f231bb50d7ba1fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 10 Dec 2014 20:52:39 +0100 Subject: [PATCH] [WatchKit] Add notification payload sample. --- .../files/PushNotificationPayload.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/motion/project/template/ios-watch-extension/files/PushNotificationPayload.json diff --git a/lib/motion/project/template/ios-watch-extension/files/PushNotificationPayload.json b/lib/motion/project/template/ios-watch-extension/files/PushNotificationPayload.json new file mode 100644 index 00000000..dd845cf5 --- /dev/null +++ b/lib/motion/project/template/ios-watch-extension/files/PushNotificationPayload.json @@ -0,0 +1,16 @@ +{ + "aps": { + "alert": "Test message content", + "title": "Optional title", + "category": "myCategory" + }, + + "WatchKit Simulator Actions": [ + { + "title": "First Button", + "identifier": "firstButtonAction" + } + ], + + "customKey": "Use this file to define a testing payload for your notifications. The aps dictionary specifies the category, alert text and title. The WatchKit Simulator Actions array can provide info for one or more action buttons in addition to the standard Dismiss button. Any other top level keys are custom payload. If you have multiple such JSON files in your project, you'll be able to choose between them in when selecting to debug the notification interface of your Watch App." +}