Gadgetbridge: I only get text information on calls, not on the rest of notifications

Created on 15 Aug 2018  路  9Comments  路  Source: Freeyourgadget/Gadgetbridge

Before opening an issue please confirm the following:

  • [ x ] I have read the wiki, and I didn't find a solution to my problem / an answer to my question.
  • [ x ] I have searched the issues, and I didn't find a solution to my problem / an answer to my question.

Your issue is:

If I go to debug and tap on "incoming call", I get the phone icon and the message/caller text displayed below.

If I send any kind of notification, I only get an icon

Your wearable device is:

Mi Band 2 FW 1.0.1.81 HW V0.16.2.2

Your android version is:

7.1.1

Your Gadgetbridge version is:

0.29.0

New issues about already solved/documented topics could be closed without further comments. Same for too generic or incomplete reports.

All 9 comments

I have installed:

  • Mili_pro.ft
  • Mili_pro.ft.en
  • Mili_pro_tph_as7000.fw

have you enabled "textual notifications" in Mi Band/Amazfit settings?

Yes, that one is enabled

Similar problem here: MiBand 2 shows notification only for phone-calls and SMS, but not for Conversations-Messages. K9-emails, and calendar-events since v.0.29.1.

LineageOS 14.1 (Android 7.1.2) on Samsung Galaxy S5,

I got the very same problem here with a
MiBand 2
FW: 1.0.1.81 (this is the stock firmware, I did not update it with GB)
HW: V0.1.3.2
and Mili_pro.ft Mili_pro_en.ft installed successfully.
In debug menu, only Incoming Call shows textual notification.
This prooves that the notification mechanism is working well.

I too noticed this and I start looking at DebugActivity.java,

The "Incoming call" button calls onSetCallState:
https://github.com/Freeyourgadget/Gadgetbridge/blob/934f36f45aea864f15181afc963ead4310db8de9/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java#L137
and onSetCallState sets the text message into a SimpleNotification object to pass to performPreferredNotification:
https://github.com/Freeyourgadget/Gadgetbridge/blob/934f36f45aea864f15181afc963ead4310db8de9/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/MiBandSupport.java#L651

The "Send" button instead calls onNotification:
https://github.com/Freeyourgadget/Gadgetbridge/blob/934f36f45aea864f15181afc963ead4310db8de9/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java#L126
and onNotification does not create a simpleNotification, it passes null to performPreferredNotification:
https://github.com/Freeyourgadget/Gadgetbridge/blob/934f36f45aea864f15181afc963ead4310db8de9/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/MiBandSupport.java#L576

So the Notification strategy does not send the text message in the second case:
https://github.com/Freeyourgadget/Gadgetbridge/blob/486d7bdca64461d6567674c303bdbd5d7e571d36/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/miband2/Mi2TextNotificationStrategy.java#L55

Supporting text messages for all the other notifications should not be too hard (change two lines to onNotification), and it will work well for the debug activity, but it may become weird for actual notifications, as the whole body would be put in the text message, see: https://github.com/Freeyourgadget/Gadgetbridge/blob/f8d72f62e297624fcdfa5d36bb4d4a06163e9eb6/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/NotificationUtils.java#L29

Maybe ellipsizing the text could work.

Anyway I won't be able to test this myself anytime soon, sorry.

Ciao,
Antonio

I have the exact same issue.
Did anyone figure out how to solve this?
Does changing the MiBand2 FW help?
I'm currently on
FW 1.0.1.81
HW V0.1.3.3

Only calls show info. Any other messages only show the icon but no text.

I now have a Mi Band 3 which doesn't have this issue, so unsubscribing

Ich have the same issue. Ich got text notifications for calls but only icons for all other apps like WhatsApp or OsmAnd.
Is there any workaround?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  7Comments

Jiack214 picture Jiack214  路  6Comments

bigretromike picture bigretromike  路  8Comments

yarons picture yarons  路  7Comments

RustyRaptor picture RustyRaptor  路  3Comments