6 Notifications
José Rebelo edited this page 4 months ago
Table of Contents

Gadgetbridge offers wide notifications possibilities and settings. Some are global, some might be device specific.

Persistent notification in Notifications drawer

There is a persistent notification in the Notifications drawer.

For the most time, this is actually required, to ensure that Gadgetbridge keeps running in the background and keeps Bluetooth connection with the band/watch (even if the application is not currently open and used), that is required by Android itself. This notification can be hidden via Settings → "Hide the Gadgetbridge notification". In Android 10, this settings might not be working anymore, but you can hide the notification on Android 10 when you long-press on the notification and hide it from there.

Phone Calls, SMS, generic notification support

The Settings menu has several items allow to tweak the notifications as required, for example choose whether incoming calls should be signalled to your Gadget, choose when incoming SMS should cause notifications on your Gadget: always, only when your Android device’s screen is off, never... You can also set Minimum time between notifications etc.

SMS notifications are lost somewhere

Problem

You are using alternative SMS app (like Silence or Signal). Stock one is present and not disabled, but the alternative one is set up to be default. All notifications but SMS are shown. Log says that Gadgetbridge is Ignoring notification, is a system event

Solution

You have to disable SMS support in Gadgetbridge settings to fix your problem (change it to Never).

The reason is that we blacklist alternative SMS Apps in the generic notification receiver since it would otherwise result in double notifications (one picked up from the Android SMS receiver, and one picked up from the actual notification)

In case the SMS is encrypted, it would not make sense to use the SMS receiver, but only the notification receiver which already contains the decrypted content.

Incoming call notification on Lineage OS

Problem

Using Gadgetbridge under Lineage OS could prevent the notification of incoming calls on your Amazfit Bip due to settings in the "privacy guard" of Lineage OS.

Solution

Go to "Option" -> "Security" -> "Trust". Touch the "More Options Icon" and than "Advanced". Search for Gadgetbridge and click on it. Set the reading of call log history to "Allowed"

see #1477

Device specific notification settings

Some devices allow you to receive additional notifications, here are few examples:

Notification when you reach your daily goal, like steps etc. Some devices might also offer specific vibrations settings. Disconnect notification, which can be set up also only for some Scheduled time interval period.

Notification blacklist management

You can adjust very previse notification filtering for each individual application installed on the Android device.

App blacklisting

For each app (you can search for a particular app), you can choose if notifications are Disabled (blacklisted) by checking the NOTIF checkbox.

You can also set all apps to enabled/disabled in bulk via the dots menu.

Detailed per app filtering

For each app, you can establish detailed filtering rules, allowing to forward or block particular notification based on it's content. Click on the hamburger menu of each app , so the the required rules.

Send notifications to device from other apps

It's possible to send notifications directly to the device using Intents, trough PebbleKit notifications. Despite having PebbleKit in the name, these work for any device.

  1. In the notification settings page, set Pebble Messages to When screen is off or Always
  2. Send a broadcast:
adb shell am broadcast \
    -a "com.getpebble.action.SEND_NOTIFICATION" \
    -e "messageType" "PEBBLE_ALERT" \
    -e "notificationData" '[{"title":"PebbleKitTest","body":"sent from Gadgetbridge"}]'