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
Mi Band 2 FW 1.0.1.81 HW V0.16.2.2
7.1.1
0.29.0
New issues about already solved/documented topics could be closed without further comments. Same for too generic or incomplete reports.
I have installed:
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?