android: Send notification id when handling notifications
parent
d46d99d408
commit
358a02471d
|
|
@ -98,7 +98,7 @@
|
||||||
"id": "android",
|
"id": "android",
|
||||||
"name": "Android Integration",
|
"name": "Android Integration",
|
||||||
"shortName": "Android",
|
"shortName": "Android",
|
||||||
"version": "0.04",
|
"version": "0.05",
|
||||||
"description": "Display notifications/music/etc from Gadgetbridge on Android. This replaces the old Gadgetbridge widget.",
|
"description": "Display notifications/music/etc from Gadgetbridge on Android. This replaces the old Gadgetbridge widget.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "tool,system,messages,notifications",
|
"tags": "tool,system,messages,notifications",
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,4 @@
|
||||||
Fix music control
|
Fix music control
|
||||||
0.03: Handling of message actions (ok/clear)
|
0.03: Handling of message actions (ok/clear)
|
||||||
0.04: Android icon now goes to settings page with 'find phone'
|
0.04: Android icon now goes to settings page with 'find phone'
|
||||||
|
0.05: Fix handling of message actions
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
// Message response
|
// Message response
|
||||||
Bangle.messageResponse = (msg,response) => {
|
Bangle.messageResponse = (msg,response) => {
|
||||||
if (msg.id=="call") return gbSend({ t: "call", n:response?"ACCEPT":"REJECT" });
|
if (msg.id=="call") return gbSend({ t: "call", n:response?"ACCEPT":"REJECT" });
|
||||||
if (isFinite(msg.id)) return gbSend({ t: "notify", n:response?"OPEN":"DISMISS" });
|
if (isFinite(msg.id)) return gbSend({ t: "notify", n:response?"OPEN":"DISMISS", id: msg.id });
|
||||||
// error/warn here?
|
// error/warn here?
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue