mirror of https://github.com/espruino/BangleApps
iOS app 0.08
============ Added more details from music (instead of Undefined) Added more app identifiers Messages app 0.13 ================= New animated widget bell icon (instead of large blinking 'MESSAGES') New app icon Added screenshot Extra app-specific notification iconspull/1084/head
parent
c0f6dee079
commit
ab4941c495
|
@ -6,3 +6,6 @@
|
|||
determine a friendly app name in the notifications)
|
||||
0.06: Fix (not) popupping up old messages
|
||||
0.07: Added common bundleId's
|
||||
0.08: Added more details from music (instead of Undefined)
|
||||
Added more app identifiers
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ E.on('notify',msg=>{
|
|||
'2019':"'"
|
||||
};
|
||||
var replacer = ""; //(n)=>print('Unknown unicode '+n.toString(16));
|
||||
if (appNames[msg.appId]) msg.a
|
||||
//if (appNames[msg.appId]) msg.a
|
||||
require("messages").pushMessage({
|
||||
t : msg.event,
|
||||
id : msg.uid,
|
||||
|
@ -130,6 +130,7 @@ E.on('AMS',a=>{
|
|||
if (a.id=="artist") msg.artist = m;
|
||||
else if (a.id=="album") msg.album = m;
|
||||
else if (a.id=="title") msg.track = m;
|
||||
else if (a.id=="duration") msg.track = m;
|
||||
else return; // duration? need to reformat
|
||||
require("messages").pushMessage(msg);
|
||||
}
|
||||
|
|
|
@ -14,4 +14,8 @@
|
|||
Fix phone icon (#1014)
|
||||
0.10: Respect the 'new' attribute if it was set from iOS integrations
|
||||
0.11: Open app when touching the widget (Bangle.js 2 only)
|
||||
0.12: New notification icons, more app icons
|
||||
0.12: New notification icons, more app icons
|
||||
0.13: New animated widget bell icon (instead of large blinking 'MESSAGES')
|
||||
New app icon
|
||||
Added screenshot
|
||||
Extra app-specific notification icons
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# Messages app
|
||||
|
||||
**THIS APP IS CURRENTLY BETA**
|
||||
|
||||
This app handles the display of messages and message notifications. It stores
|
||||
a list of currently received messages and allows them to be listed, viewed,
|
||||
and responded to.
|
||||
|
@ -17,7 +15,7 @@ and `Messages`:
|
|||
* `Repeat` - How often should buzzes repeat - the default of 4 means the Bangle will buzz every 4 seconds
|
||||
* `Unread Timer` - when a new message is received we go into the Messages app.
|
||||
If there is no user input for this amount of time then the app will exit and return
|
||||
to the clock where `MESSAGES` will be shown in the Widget bar.
|
||||
to the clock where a ringing bell will be shown in the Widget bar.
|
||||
|
||||
|
||||
## Requests
|
||||
|
|
|
@ -1 +1 @@
|
|||
require("heatshrink").decompress(atob("mEw4UA///mlmtnzAoI3rhWoBREC1Wq0ALHlQLBDBAKBAAIiJ9WqwALH1f6GA8KBYYwGBZZGBBZxIGBb0BqoACtQLFioLFQggKDBYuoEQlVrQLEgoLGR4YLFqwLEitX/4ADEYeABYy9BIwgLELoSaBFwgACEQQLIAANABcStBKY3/+oLPEQ9UBYKPFBYqzFAAVQdQRSJGBIKCEg4iDAAghFAAonBBRALBKAQAHgoLKgI5IBYQ6JAFYA=="))
|
||||
require("heatshrink").decompress(atob("mEwxH+ABV7ACQfLABobBwOCACGBGLAYBwWIACWCGC4uHEAQJBRIYPIF7wACAggvfRqYADF6qBDAC7uWACGmAAIFCF6+tAB+zAAQFCF84uGF7ghDFw+s1iNDAoIva2fX64wH2a3CfjYvDFwQwHQwWCxIASIoJfOXZAvKSoIvWX47qDF5CYEBhIvMLpA3BEQ4hB0vP5+lBpIvRFwgvIFwYwDF7AuFR5F71YvD1YvYFwwvHEAIvE54OIF5wuDF4LvJXwQACF7AtE64FDEBAADMYIvVLgvXAAIvIdwrwIF5q7GFwYvGD4IuFSA4vMdQ4HED4t7wIvHwJgEF5YuMF44AKF5wuNd5AACDYIFDX54uNF45kFBRAvMFxYvLABQvLEwXX65lIF8AmDFxIviRhQACcoQADGoYKGAArvLFxQAB1mm02CFIIvDFqIvIFxINFF4aDIABYvDJwIgBwOsEoKaC1mBBwovCRoQvZcwOmF4mmBwusF4IuVF4wDBL5OtF4TpFF6y7PAAQyBGYIvXFyQAEF7AuVF7AAZF6qrCACgvXxAAWF6owBEJJSCwQvKFygvBERIvMBgIv/eBC9TdywwEGIIAQCgQuWGIoAQEiA"))
|
|
@ -66,10 +66,10 @@ function getBackImage() {
|
|||
return atob("FhYBAAAAEAAAwAAHAAA//wH//wf//g///BwB+DAB4EAHwAAPAAA8AADwAAPAAB4AAHgAB+AH/wA/+AD/wAH8AA==");
|
||||
}
|
||||
function getNotificationImage() {
|
||||
return atob("GBiBAAAAAAf/4AZ+YAQAIAQAIAQAAAQ//AR//gR+fgR+fgR8PgR8PgR8PgR4HgR//gR//gQ//AQcAAQQIAQAIAQAIAYAYAf/4AAAAA==");
|
||||
return atob("GBiBAf////wA//AAf/AAf/AAf/f/f/f/f/fgA/fv/ffvPffuPffuPffuHffv/ffmA/f4f/fxf/f/f/f/f/AAf/Bwf/AAf/wA/////w==");
|
||||
}
|
||||
function getFBIcon() {
|
||||
return atob("AAABgA/wH/g/HD4cPnx+fngePBw+fD58HngOcAAAAAA=");
|
||||
return atob("GBiBAAAAAAAAAAAYAAD/AAP/wAf/4A/48A/g8B/g+B/j+B/n+D/n/D8A/B8A+B+B+B/n+A/n8A/n8Afn4APnwADnAAAAAAAAAAAAAA==");
|
||||
}
|
||||
function getMailIcon() {
|
||||
return atob("HBKBAD///8H///iP//8cf//j4//8f5//j/x/8//j/H//H4//4PB//EYj/44HH/Hw+P4//8fH//44///xH///g////A==");
|
||||
|
@ -83,24 +83,28 @@ function getNegImage() {
|
|||
function getMessageImage(msg) {
|
||||
if (msg.img) return atob(msg.img);
|
||||
var s = (msg.src||"").toLowerCase();
|
||||
if (s=="calendar") return atob("GBiBAAAAAAAAAAAAAA//8B//+BgAGBgAGBgAGB//+B//+B//+B9m2B//+B//+Btm2B//+B//+Btm+B//+B//+A//8AAAAAAAAAAAAA==");
|
||||
if (s=="facebook") return getFBIcon();
|
||||
if (s=="hangouts") return atob("FBaBAAH4AH/gD/8B//g//8P//H5n58Y+fGPnxj5+d+fmfj//4//8H//B//gH/4A/8AA+AAHAABgAAAA=");
|
||||
if (s=="instagram") return atob("GBiBAf////////////////wAP/n/n/P/z/f/b/eB7/c87/d+7/d+7/d+7/d+7/c87/eB7/f/7/P/z/n/n/wAP////////////////w==");
|
||||
if (s=="gmail") return getMailIcon();
|
||||
if (s=="google home") return atob("GBiCAAAAAAAAAAAAAAAAAAAAAoAAAAAACqAAAAAAKqwAAAAAqroAAAACquqAAAAKq+qgAAAqr/qoAACqv/6qAAKq//+qgA6r///qsAqr///6sAqv///6sAqv///6sAqv///6sA6v///6sA6v///qsA6qqqqqsA6qqqqqsA6qqqqqsAP7///vwAAAAAAAAAAAAAAAAA==");
|
||||
if (s=="mail") return getMailIcon();
|
||||
if (s=="messenger") return getFBIcon();
|
||||
if (s=="outlook mail") return getMailIcon();
|
||||
if (s=="phone") return atob("FxeBABgAAPgAAfAAB/AAD+AAH+AAP8AAP4AAfgAA/AAA+AAA+AAA+AAB+AAB+AAB+OAB//AB//gB//gA//AA/8AAf4AAPAA=");
|
||||
if (s=="skype") return atob("GhoBB8AAB//AA//+Af//wH//+D///w/8D+P8Afz/DD8/j4/H4fP5/A/+f4B/n/gP5//B+fj8fj4/H8+DB/PwA/x/A/8P///B///gP//4B//8AD/+AAA+AA==");
|
||||
if (s=="hangouts") return atob("FBaBAAH4AH/gD/8B//g//8P//H5n58Y+fGPnxj5+d+fmfj//4//8H//B//gH/4A/8AA+AAHAABgAAAA=");
|
||||
if (s=="whatsapp") return atob("GBiBAAB+AAP/wAf/4A//8B//+D///H9//n5//nw//vw///x///5///4///8e//+EP3/APn/wPn/+/j///H//+H//8H//4H//wMB+AA==");
|
||||
if (s=="telegram") return atob("GBiBAAAAAAAAAAAAAAAAAwAAHwAA/wAD/wAf3gD/Pgf+fh/4/v/z/P/H/D8P/Acf/AM//AF/+AF/+AH/+ADz+ADh+ADAcAAAMAAAAA==");
|
||||
if (s=="twitter") return atob("GhYBAABgAAB+JgA/8cAf/ngH/5+B/8P8f+D///h///4f//+D///g///wD//8B//+AP//gD//wAP/8AB/+AB/+AH//AAf/AAAYAAA");
|
||||
if (s=="slack") return atob("GBiBAAAAAAAAAABAAAHvAAHvAADvAAAPAB/PMB/veD/veB/mcAAAABzH8B3v+B3v+B3n8AHgAAHuAAHvAAHvAADGAAAAAAAAAAAAAA==");
|
||||
if (s=="facebook") return getFBIcon();
|
||||
if (s=="messenger") return getFBIcon();
|
||||
if (s=="mail") return getMailIcon();
|
||||
if (s=="gmail") return getMailIcon();
|
||||
if (s=="sms message") return getMailIcon();
|
||||
if (s=="twitter") return atob("GhYBAABgAAB+JgA/8cAf/ngH/5+B/8P8f+D///h///4f//+D///g///wD//8B//+AP//gD//wAP/8AB/+AB/+AH//AAf/AAAYAAA");
|
||||
if (s=="telegram") return atob("GBiBAAAAAAAAAAAAAAAAAwAAHwAA/wAD/wAf3gD/Pgf+fh/4/v/z/P/H/D8P/Acf/AM//AF/+AF/+AH/+ADz+ADh+ADAcAAAMAAAAA==");
|
||||
if (s=="whatsapp") return atob("GBiBAAB+AAP/wAf/4A//8B//+D///H9//n5//nw//vw///x///5///4///8e//+EP3/APn/wPn/+/j///H//+H//8H//4H//wMB+AA==");
|
||||
if (s=="wordfeud") return atob("GBgBP//8f//+////////////+/5X+/73+/7/+/7/+f7/+c7//Y7//a7//az//bX//XX//XX//Hn//nn//vn/////////f//+AB6A");
|
||||
if (msg.id=="music") return atob("FhaBAH//+/////////////h/+AH/4Af/gB/+H3/7/f/v9/+/3/7+f/vB/w8H+Dwf4PD/x/////////////3//+A=");
|
||||
if (msg.id=="back") return getBackImage();
|
||||
return getNotificationImage();
|
||||
}
|
||||
|
||||
|
||||
function showMapMessage(msg) {
|
||||
var m;
|
||||
var distance, street, target, eta;
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.0 KiB |
Loading…
Reference in New Issue