Author Topic: HTC unread badge  (Read 4164 times)

p50kombi

  • Newbie
  • *
  • Posts: 20
HTC unread badge
« on: November 22, 2016, 10:31:19 pm »
I know it's probably a lot to ask, but is it possible to do a test build with that one in to see if it has improved now?
HTC 10 is such a new device, maybe the redraw issues are gone?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: HTC unread badge
« Reply #1 on: November 22, 2016, 10:44:49 pm »
Re: HTC

The code has two ways of setting the badge, this makes me uncomfortable - assuming one is "old" and the other is "new" (for newer Android version), which is which?

And it requires permissions (it's in AndroidManifest.xml), this also makes me uncomfortable, which method (old or new) are those for?

Why doesn't HTC document this, the way Sony did? Same question for Samsung.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

p50kombi

  • Newbie
  • *
  • Posts: 20
Re: HTC unread badge
« Reply #2 on: November 23, 2016, 12:35:54 am »
Good question, I guess we'll never know..
Shame as I really need that functionality on my lockscreen dock, hence I can't use a widget.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: HTC unread badge
« Reply #3 on: November 23, 2016, 12:38:00 am »
Re: need that functionality on my lockscreen dock

And Google removed lock screen widgets in Android 5.0...
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

p50kombi

  • Newbie
  • *
  • Posts: 20
Re: HTC unread badge
« Reply #4 on: November 23, 2016, 12:39:04 am »
Hence my problem..
It works if the badge is on the app icon, as that is on the dock on the lockscreen of htc sense

p50kombi

  • Newbie
  • *
  • Posts: 20
Re: HTC unread badge
« Reply #5 on: November 23, 2016, 12:40:29 am »
Is there any way for me to reverse engineer it out of an app like whatsapp or something like that?
those all work brilliantly

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: HTC unread badge
« Reply #6 on: November 23, 2016, 12:40:34 am »
Re: HTC

And sometimes this library just plain doesn't work, it seems, on some specific device models:

https://github.com/leolin310148/ShortcutBadger/issues/134
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: HTC unread badge
« Reply #7 on: November 23, 2016, 12:42:35 am »
I can't tell you what you can and cannot reverse engineer ;)

But personally I'd make a simple app that has broadcast receivers of both of these:

    public static final String INTENT_UPDATE_SHORTCUT = "com.htc.launcher.action.UPDATE_SHORTCUT";
    public static final String INTENT_SET_NOTIFICATION = "com.htc.launcher.action.SET_NOTIFICATION";

and logs when they come in and the extras.

Technically, this won't even be "reverse engineering" the WhatsApp app.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/