Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banglejs : Improvement over notifications #344

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Banglejs : Improvement over notifications #344

merged 2 commits into from
Mar 22, 2024

Conversation

Tsht
Copy link
Contributor

@Tsht Tsht commented Feb 25, 2024

  1. Incoming calls

From specifications of notifications of gadgetbridge (https://www.espruino.com/Gadgetbridge), cmd can be
t:"call", cmd:"accept/incoming/outgoing/reject/start/end", name: "name", number: "+491234" - call

example shows :
GB({"t":"call","cmd":"incoming","name":"name","number":"+441234123123"})

Tried this way and incoming calls show on my bangle.js 2
I didn't check however how to accept or refuse calls...

  1. Notifications (sendAlert)

Put an unique identifier.
Also, filter out messages which have an empty body and subject. Not convinced 100%, but something similar is done for instance for MiBandService::sendAlert
For me, it concerns mails which sends two notifications, the second with "courriel" (so in French) in the sender field, with empty subject and message.

I suppose it would be better to filter out those based on the event, but I do not master this part of code.

@Tsht Tsht changed the title Banglejs : Show incoming calls Banglejs : Improvement over notifications Feb 28, 2024
@piggz piggz merged commit d3f098c into piggz:master Mar 22, 2024
@piggz
Copy link
Owner

piggz commented Mar 22, 2024

thank! hopefully you can make more bangle.js improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants