From 70032a34bbc49e7f95e7d8a005276a73a0e70257 Mon Sep 17 00:00:00 2001 From: Mineinjava <65673396+Mineinjava@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:38:03 -0800 Subject: [PATCH] test --- apps/ios/boot.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/ios/boot.js b/apps/ios/boot.js index 1b38436d8..58af0c84d 100644 --- a/apps/ios/boot.js +++ b/apps/ios/boot.js @@ -160,6 +160,22 @@ E.on('notify',msg=>{ }; var replacer = ""; //(n)=>print('Unknown unicode '+n.toString(16)); //if (appNames[msg.appId]) msg.a + if (msg.title === "BangleDumpCalendar") { + // parse the message body into json: + const d = JSON.parse(msg.message); + /* Example: + { + "title": "Test Event", + "start_time": "2023-11-10T11:00:00-08:00", + "duration":"1:00:00", + "notes": "This is a test event.", + "location": "Stonehenge Amesbury, Wiltshire, SP4 7DE, England", + "calName": "Home" + } + */ + console.log(d, d.title, d.start_time, d.duration, d.notes, d.location, d.calName); + + } require("messages").pushMessage({ t : msg.event, id : msg.uid,