Get data from iOS #6490
Replies: 1 comment
-
Posted at 2023-06-19 by @gfwilliams So the Bangle is getting the relevant notification sent to it, and you want to be able to grab the data out of it? If so, absolutely! The ios app sends the message event to the messages library at https://github.com/espruino/BangleApps/blob/master/apps/ios/boot.js#L165 but the messages library sends a
That should work great for you Posted at 2023-06-20 by user146550 Cool Posted at 2023-06-20 by user146550 Cool I will explore it. Posted at 2023-06-20 by @gfwilliams Where have you written that code? Is it in an app, or boot code? If it's an app then if a different app gets loaded your app's code won't get called - could that be it? I'm not sure how message overlay works - I assumed it didn't load another app, but I might be wrong Posted at 2023-06-20 by @halemmerich It does not load another app, but it does not yet use the message events. It overrides the require call for the messages lib which is quite hacky. Boot order won't save that, only updating messages overlay to correctly using the messages event will help. Posted at 2023-11-07 by Mineinjava What if we added this to the "iOS Integration" app and provided iphone shortcuts to automatically send over data via a notification (such as weather, reminders, calendar events) in lieu of Gadgetbridge for iphones. I would most likely be able to implement this. I am wondering if it has already been done and any suggestions/requirements. Posted at 2023-11-07 by @gfwilliams
I wasn't aware you could do this - but if you can set that up on iOS then great! I'm happy to help with stuff on the Bangle.js side of things Posted at 2023-11-08 by Mineinjava Would this be better implemented as its own app or should I try to add it to the existing iOS integration app? I think it would be easier to add it to the existing app Posted at 2023-11-08 by @gfwilliams Yes, I'd just add to the existing iOS app - but some good info on how to set up iOS to get the notifications would be amazingly helpful. Posted at 2023-11-08 by Mineinjava I created this shortcut for calendar syncing.
I could not get the calendar color through the shortcuts app. Attached is an image of a test run. Would it be possible to run the "negative action" to automatically dismiss the notifications? This shortcut is automatable with the shortcut "automations" feature. It can be configured to run at a time of day or when the bangle is connected to the iphone. I will make another shortcut for weather. Attachments: Posted at 2023-11-09 by @gfwilliams This looks really neat!
Yes, the Bangle cal just call Posted at 2023-11-10 by Mineinjava Thanks! I'm noticing that a lot of apps require an Not sure what to do about android vs ios calendars. It would be great to have one app/module/file that both ios and android depended on, but that is a bit out of my current capabilities Could you send a link to either documentation of the weather module and/or how it is implemented for android? Posted at 2023-11-10 by @gfwilliams Ahh - I'd ignore the fact it says The main weather library is at https://github.com/espruino/BangleApps/blob/master/apps/weather/lib.js and reads from
Sorry it's not better documented though - you can see roughly what form the data takes at https://github.com/espruino/BangleApps/blob/master/apps/weather/clkinfo.js Posted at 2023-11-11 by Mineinjava I tested and this works pretty well. Thanks for all your help!!! For future readers: espruino/BangleApps#3089 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-06-16 by user146550
Hi,
I know that Bangle can receive notifiactions directly from iOS but I wonder if there is possibility to make an app for example to "capture" data from secific notifiction e.g. weather app that gets data from ios Shortcuts with weather data in json format.
Is it somehow possible?
Beta Was this translation helpful? Give feedback.
All reactions