BangleApps/apps/messages
Richard de Boer 6f27a65143
messages: also emit "clearAll" message events
2022-09-24 17:26:16 +02:00
..
ChangeLog messages: move buzz from widget to library 2022-09-24 17:26:16 +02:00
README.md messages: also emit "clearAll" message events 2022-09-24 17:26:16 +02:00
app-icon.js Messages: reverted icon change as 'notification' is very versatile, could be anything from envelopes, to bells, to chatbubbles etc.. Also fixed duration 2021-12-14 12:02:48 +01:00
app-newmessage.js messages 0.48: When getting new message from the clock, only buzz once the messages app is loaded 2022-07-22 11:23:21 +01:00
app.js messages: move buzz from widget to library 2022-09-24 17:26:16 +02:00
app.png Messages: reverted icon change as 'notification' is very versatile, could be anything from envelopes, to bells, to chatbubbles etc.. Also fixed duration 2021-12-14 12:02:48 +01:00
lib.js messages: also emit "clearAll" message events 2022-09-24 17:26:16 +02:00
metadata.json messages: emit "message" events 2022-09-24 17:13:24 +02:00
screenshot-notify.gif Merge branch 'master' into icon-notifs 2022-06-08 14:36:36 +10:00
screenshot.png messages +0.23: Change message colors to match current theme instead of using green 2022-02-23 10:44:48 +00:00
settings.js messages: setting to hide widget 2022-09-24 17:13:24 +02:00
widget.js messages: move buzz from widget to library 2022-09-24 17:26:16 +02:00

README.md

Messages app

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.

It is a replacement for the old notify/gadgetbridge apps.

Settings

You can change settings by going to the global Settings app, then App Settings and Messages:

  • Vibrate - This is the pattern of buzzes that should be made when a new message is received
  • Vibrate for calls - This is the pattern of buzzes that should be made when an incoming call is received
  • Repeat - How often should buzzes repeat - the default of 4 means the Bangle will buzz every 4 seconds
  • Vibrate Timer - When a new message is received when in a non-clock app, we display the message icon and buzz every Repeat seconds. This is how long we continue to do that.
  • Unread Timer - When a new message is received when showing the clock 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 a ringing bell will be shown in the Widget bar.
  • Min Font - The minimum font size used when displaying messages on the screen. A bigger font is chosen if there isn't much message text, but this specifies the smallest the font should get before it starts getting clipped.
  • Auto-Open Music - Should the app automatically open when the phone starts playing music?
  • Unlock Watch - Should the app unlock the watch when a new message arrives, so you can touch the buttons at the bottom of the app?
  • Flash Icon - Toggle flashing of the widget icon.
  • Widget messages - The maximum amount of message icons to show on the widget, or Hide the widget completely.

New Messages

When a new message is received:

  • If you're in an app, the Bangle will buzz and a message icon appears in the Widget bar. You can tap this icon to view the message.
  • If you're in a clock, the Messages app will automatically start and show the message

When a message is shown, you'll see a screen showing the message title and text.

  • The 'back-arrow' button (or physical button on Bangle.js 2) goes back to Messages, marking the current message as read.
  • The top-left icon shows more options, for instance deleting the message of marking unread
  • On Bangle.js 2 you can tap on the message body to view a scrollable version of the title and text (or can use the top-left icon + View Message)
  • If shown, the 'tick' button:
    • Android opens the notification on the phone
    • iOS responds positively to the notification (accept call/etc)
  • If shown, the 'cross' button:
    • Android dismisses the notification on the phone
    • iOS responds negatively to the notification (dismiss call/etc)

Images

1. Screenshot of a notification

2. What the notify icon looks like (it's touchable on Bangle.js2!)

Events (for app/widget developers)

When a new message arrives, a "message" event is emitted, you can listen for it like this:

myMessageListener = Bangle.on("message", (type, message)=>{
  if (message.handled) return; // another app already handled this message
  // <type> is one of "text", "call", "alarm", "map", "music", or "clearAll"
  if (type === "clearAll") return; // not a message
  // see `messages/lib.js` for possible <message> formats
  // message.t could be "add", "modify" or "remove"
  E.showMessage(`${message.title}\n${message.body}`, `${message.t} ${type} message`);
  // You can prevent the default `message` app from loading by setting `message.handled = true`:
  message.handled = true;
});

Requests

Please file any issues on https://github.com/espruino/BangleApps/issues/new?title=messages%20app

Creator

Gordon Williams

Contributors

Jeroen Peters

Attributions

Icons used in this app are from https://icons8.com