diff --git a/apps.json b/apps.json index 2c9b9148e..48f485d7e 100644 --- a/apps.json +++ b/apps.json @@ -57,7 +57,7 @@ { "id": "messages", "name": "Messages", - "version": "0.09", + "version": "0.10", "description": "App to display notifications from iOS and Gadgetbridge", "icon": "app.png", "type": "app", @@ -95,7 +95,7 @@ { "id": "ios", "name": "iOS Integration", - "version": "0.04", + "version": "0.06", "description": "(BETA) App to display notifications from iOS devices", "icon": "app.png", "tags": "tool,system,ios,apple,messages,notifications", @@ -197,7 +197,7 @@ { "id": "locale", "name": "Languages", - "version": "0.11", + "version": "0.12", "description": "Translations for different countries", "icon": "locale.png", "type": "locale", @@ -731,6 +731,7 @@ "description": "Application that allows you to record a GPS track. Can run in background", "icon": "app.png", "tags": "tool,outdoors,gps,widget", + "screenshots": [{"url":"screenshot.png"}], "supports": ["BANGLEJS","BANGLEJS2"], "readme": "README.md", "interface": "interface.html", @@ -1126,7 +1127,7 @@ { "id": "qrcode", "name": "Custom QR Code", - "version": "0.02", + "version": "0.03", "description": "Use this to upload a customised QR code to Bangle.js", "icon": "app.png", "tags": "qrcode", @@ -4339,7 +4340,7 @@ "version": "0.01", "description": "A touch based GPS watch, shows OS map reference", "icon": "gpstouch.png", - "screenshots": [{"url":"screenshot1.png"},{"url":"screenshot2.png"},{"url":"screenshot3.png"},{"url":"screenshot4.png"}], + "screenshots": [{"url":"screenshot4.png"},{"url":"screenshot2.png"},{"url":"screenshot3.png"},{"url":"screenshot1.png"}], "tags": "tools,app", "supports": ["BANGLEJS2"], "readme": "README.md", @@ -4780,5 +4781,25 @@ {"name": "flow.app.js", "url": "app.js" }, {"name": "flow.img", "url": "app-icon.js","evaluate": true } ] + }, + { "id": "scribble", + "name": "Scribble", + "shortName":"Scribble", + "version":"0.01", + "type": "app", + "description": "A keyboard on your wrist! Swipe right for space, left for delete.", + "icon": "app.png", + "allow_emulator": true, + "tags": "tools, keyboard, text, scribble", + "supports" : ["BANGLEJS2"], + "readme": "README.md", + "storage": [ + {"name":"scribble.app.js","url":"app.js"}, + {"name":"scribble.img","url":"app-icon.js","evaluate":true} + ], + "screenshots":[ + { "url":"screenshot.png" } + ] } + ] diff --git a/apps/gpsrec/README.md b/apps/gpsrec/README.md index 72f744452..71b934111 100644 --- a/apps/gpsrec/README.md +++ b/apps/gpsrec/README.md @@ -8,3 +8,6 @@ This app allows you to record a GPS track. It can run in background. The data ca When you turn on recording, a widget badge that looks like a satellite will appear immediately at the top of the screen. However, the recording does not begin immediately. It usually takes several minutes for the watch to get a [GPS fix](https://en.wikipedia.org/wiki/Time_to_first_fix). You will notice a blinking question mark at the lower left of the badge indicating currently getting a fix. The badge will change when a GPS fix is achieved and that is when the app actually starts writing data to the log file. You can [upload assistant files](https://banglejs.com/apps/#assisted%20gps%20update) to speed up the time spent on getting a GPS fix. +## Viewing a track + +![](screenshot.png) diff --git a/apps/gpsrec/screenshot.png b/apps/gpsrec/screenshot.png new file mode 100644 index 000000000..f6e001749 Binary files /dev/null and b/apps/gpsrec/screenshot.png differ diff --git a/apps/gpstouch/README.md b/apps/gpstouch/README.md index 7329f9833..172b5da57 100644 --- a/apps/gpstouch/README.md +++ b/apps/gpstouch/README.md @@ -14,3 +14,5 @@ ![](screenshot2.png) ![](screenshot3.png) ![](screenshot4.png) + +Written by: [Hugh Barney](https://github.com/hughbarney) For support and discussion please post in the [Bangle JS Forum](http://forum.espruino.com/microcosms/1424/) diff --git a/apps/ios/ChangeLog b/apps/ios/ChangeLog index dd8a3549b..28ad78dec 100644 --- a/apps/ios/ChangeLog +++ b/apps/ios/ChangeLog @@ -2,3 +2,6 @@ 0.02: Remove messages on disconnect 0.03: Handling of message actions (ok/clear) 0.04: Added common bundleId's +0.05: Added more bundleId's (app-id's which can be used to + determine a friendly app name in the notifications) +0.06: Fix (not) popupping up old messages \ No newline at end of file diff --git a/apps/ios/boot.js b/apps/ios/boot.js index 875f00067..d402facbb 100644 --- a/apps/ios/boot.js +++ b/apps/ios/boot.js @@ -26,6 +26,13 @@ E.on('ANCS',msg=>{ function ancsHandler() { var msg = Bangle.ancsMessageQueue[0]; NRF.ancsGetNotificationInfo( msg.uid ).then( info => { + + if(msg.preExisting === true){ + info.new = false; + } else { + info.new = true; + } + E.emit("notify", Object.assign(msg, info)); Bangle.ancsMessageQueue.shift(); if (Bangle.ancsMessageQueue.length) @@ -49,30 +56,47 @@ E.on('notify',msg=>{ "message" : string, "messageSize" : string, "date" : string, + "new" : boolean, "posAction" : string, "negAction" : string, "name" : string, */ var appNames = { - "nl.ah.Appie": "Albert Heijn", + "com.apple.facetime": "FaceTime", "com.apple.mobilecal": "Calendar", "com.apple.mobilemail": "Mail", + "com.apple.MobileSMS": "SMS Message", + "com.apple.Passbook": "iOS Wallet", "com.apple.reminders": "Reminders", "com.apple.shortcuts": "Shortcuts", "com.atebits.Tweetie2": "Twitter", "com.burbn.instagram" : "Instagram", "com.facebook.Facebook": "Facebook", "com.facebook.Messenger": "FB Messenger", + "com.google.Chromecast" : "Google Home", "com.google.Gmail" : "GMail", "com.google.hangouts" : "Hangouts", "com.google.ios.youtube" : "YouTube", + "com.hammerandchisel.discord" : "Discord", + "com.ifttt.ifttt" : "IFTTT", "com.jumbo.app" : "Jumbo", + "com.linkedin.LinkedIn" : "LinkedIn", + "com.nestlabs.jasper.release" : "Nest", "com.netflix.Netflix" : "Netflix", + "com.reddit.Reddit" : "Reddit", "com.skype.skype": "Skype", "com.skype.SkypeForiPad": "Skype", "com.spotify.client": "Spotify", - "net.whatsapp.WhatsApp": "WhatsApp", + "com.tinyspeck.chatlyio": "Slack", + "com.toyopagroup.picaboo": "Snapchat", + "com.ubercab.UberClient": "Uber", + "com.ubercab.UberEats": "UberEats", "com.wordfeud.free": "WordFeud", + "com.zhiliaoapp.musically": "TikTok", + "net.whatsapp.WhatsApp": "WhatsApp", + "nl.ah.Appie": "Albert Heijn", + "nl.postnl.TrackNTrace": "PostNL", + "ph.telegra.Telegraph": "Telegram", // could also use NRF.ancsGetAppInfo(msg.appId) here }; @@ -85,6 +109,7 @@ E.on('notify',msg=>{ t : msg.event, id : msg.uid, src : appNames[msg.appId] || msg.appId, + new : msg.new, title : msg.title&&E.decodeUTF8(msg.title, unicodeRemap, replacer), subject : msg.subtitle&&E.decodeUTF8(msg.subtitle, unicodeRemap, replacer), body : msg.message&&E.decodeUTF8(msg.message, unicodeRemap, replacer) diff --git a/apps/locale/ChangeLog b/apps/locale/ChangeLog index ec74955e9..ac4352f33 100644 --- a/apps/locale/ChangeLog +++ b/apps/locale/ChangeLog @@ -11,3 +11,4 @@ 0.09: Added New Zealand en_NZ 0.10: Apply 12hour setting to time 0.11: Added translations for nl_NL and changes one formatting +0.12: Fixed nl_NL formatting, because the full months won't fit on the Bangle.js2's screen diff --git a/apps/locale/locales.js b/apps/locale/locales.js index e076b70bd..2e29eb82a 100644 --- a/apps/locale/locales.js +++ b/apps/locale/locales.js @@ -184,7 +184,7 @@ var locales = { temperature: "°C", ampm: { 0: "", 1: "" }, timePattern: { 0: "%HH:%MM:%SS", 1: "%HH:%MM" }, - datePattern: { 0: "%B %d %Y", 1: "%d.%m.%y" }, // zondag 1 maart 2020 // 01.01.20 + datePattern: { 0: "%d %b %Y", 1: "%d-%m-%Y" }, // 28 feb 2020 // 28-02-2020 abday: "zo,ma,di,wo,do,vr,za", day: "zondag,maandag,dinsdag,woensdag,donderdag,vrijdag,zaterdag", abmonth: "jan,feb,mrt,apr,mei,jun,jul,aug,sep,okt,nov,dec", diff --git a/apps/messages/ChangeLog b/apps/messages/ChangeLog index 196e85107..269a2cf62 100644 --- a/apps/messages/ChangeLog +++ b/apps/messages/ChangeLog @@ -12,3 +12,4 @@ buzz on new message (fix #999) 0.09: Message now disappears after 60s if no action taken and clock loads (fix 922) Fix phone icon (#1014) +0.10: Respect the 'new' attribute if it was set from iOS integrations \ No newline at end of file diff --git a/apps/messages/lib.js b/apps/messages/lib.js index e93a5e2ba..63f55dd03 100644 --- a/apps/messages/lib.js +++ b/apps/messages/lib.js @@ -1,5 +1,5 @@ /* Push a new message onto messages queue, event is: - {t:"add",id:int, src,title,subject,body,sender,tel, important:bool} // add new + {t:"add",id:int, src,title,subject,body,sender,tel, important:bool, new:bool} {t:"add",id:int, id:"music", state, artist, track, etc} // add new {t:"remove-",id:int} // remove {t:"modify",id:int, title:string} // modified @@ -16,7 +16,11 @@ exports.pushMessage = function(event) { if (mIdx>=0) messages.splice(mIdx, 1); // remove item mIdx=-1; } else { // add/modify - if (event.t=="add") event.new=true; // new message + if (event.t=="add"){ + if(event.new === undefined ) { // If 'new' has not been set yet, set it + event.new=true; // Assume it should be new + } + } if (mIdx<0) { mIdx=0; messages.unshift(event); // add new messages to the beginning @@ -27,7 +31,11 @@ exports.pushMessage = function(event) { // if in app, process immediately if (inApp) return onMessagesModified(mIdx<0 ? {id:event.id} : messages[mIdx]); // ok, saved now - we only care if it's new - if (event.t!="add") return; + if (event.t!="add") { + return; + } else if(event.new == false) { + return; + } // otherwise load messages/show widget var loadMessages = Bangle.CLOCK || event.important; // first, buzz diff --git a/apps/qrcode/ChangeLog b/apps/qrcode/ChangeLog index e2ae6b02a..91121ac6e 100644 --- a/apps/qrcode/ChangeLog +++ b/apps/qrcode/ChangeLog @@ -1,2 +1,3 @@ 0.01: New App! 0.02: Add posibillity to generate Wifi code. +0.03: Forces integer scaling and adds more configuration (error correction, description, display) diff --git a/apps/qrcode/custom.html b/apps/qrcode/custom.html index 618840da9..eb9906f57 100644 --- a/apps/qrcode/custom.html +++ b/apps/qrcode/custom.html @@ -3,10 +3,11 @@ - - - + + +
+ @@ -25,30 +26,54 @@ + +
+

Try your QR Code:

+ +
+

Additional options:

+ +
+ +
+ +
+ +
+ + + +
+ +

Click

+