osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.62k stars 1.01k forks source link

Sending notifications about track point recordings on a smart watch #14406

Open Zirochkabila opened 2 years ago

Zirochkabila commented 2 years ago

Description

Recording of route points is also transmitted in addition to the navigation instructions

Steps to reproduce

  1. Start recording a track
  2. Turn on route notifications on the smartwatch

Actual result

The user receives notifications about track point recordings and navigation instructions on the smartwatch

Expected result

The user receives just only notifications about navigation instructions on the smartwatch

Double check

Notification for maps download (make progress less discrete by 0.1%)

Your Environment

OsmAnd Version: Huawei P40 Pro / Samsung S21 FE / Garmin watch Android/iOS version: Android 10 / Android 12 Device model: OsmAnd 4.1.10 / OsmAnd 4.1.11

PhilippeJbi commented 2 years ago

Bonjour Route notifications are working but the issue is:

On garmin, a routing option exist but this would be platform specific

Thanks for your support

vshcherb commented 2 years ago
  1. We need to properly define categories
  2. Properly use for navigation alerts

    You can optionally call setOnlyAlertOnce() so your notification interupts the user (with sound, vibration, or visual clues) only the first time the notification appears and not for later updates.

AldebaranPrimo commented 2 years ago

Bonjour Route notifications are working but the issue is:

  • OsmAnd updates distance to next change very frequently in phone notification

The excessive frequency of notifications not only makes a smartwatch unusable but it is also a problem on the smartphone because it constantly awakens it, unnecessarily increasing consumption and risking involuntary commands when it is in your pocket. In my opinion, pocket navigation is a very important feature at least for the pedestrian profile and in these situations it is enough to notify every turn a couple of times at most.

vshcherb commented 1 year ago

Excessive notifications are fixed https://github.com/osmandapp/OsmAnd/commit/57ce7f4ee6d2fe6c3e24f92f759561c6e73d0db7

damianofalcioni commented 1 year ago

Hi, I would like to inform that on Mi Band 6 the navigation notifications are not visualized, probably because they are in a silent (low/minimum priority) notification channel.

vshcherb commented 1 year ago

Unfortunately our investigation finished without success https://github.com/osmandapp/OsmAnd/issues/16310

We still don't know how to programatically enable/disable notification without it we can't implement this working reliably. So we need to implement it without notification API

Incog5 commented 8 months ago

I'm experiencing the same issue, but with some filter parameters in Notify for Amazfit app, I can reduce the notification to just ones that contain "turn left", "turn right" and "1 min". The one minute filter will allow for notification of pending arrival to destination.

A solution for all: A new feature, a setting for OsmAnd called "SmartWatch compatibility notifications" that when toggled, it will swap the default navigation notification to the text that is announced by the voiceTTS. All of these are the important notifications that a smartwatch user would want to receive: all turns, departure and arrival to destination information, etc. As these notifications don't contain a constant change in km or mins left, it will solve this issue.

damianofalcioni commented 8 months ago

FYI: currently I solved the problem thanks to gadgetbridge, as my device is compatible. They have a special support for OsmAnd to forward direction notifications to the device and they forward only the text announced by voiceTTS (as suggested by @Incog5). Their code is open source, so you can have a look on how they did it.