AquaMail Forum

English - Android => Bug reports => Topic started by: chlopiec on June 27, 2017, 10:51:22 pm

Title: Message Counter Badge not working on Sony Android 7
Post by: chlopiec on June 27, 2017, 10:51:22 pm
Hello,
I am a very happy user of AquaMail Pro (v 1.10.0). I have just switched to a new phone - Sony Xperia XZ Premium (Android 7.1.1) and came upon a new issue.
There is no notification badge on my AquaMail icon :(.
I couldn't find anything applicable in the settings window. I just can switch the style of the AquaMail widget. It works properly with the standard Android style of badges, while the Samsung TouchWiz style limits the number display to 99. However, the badge on the main icon (which I keep in my dock) is not visible.
According to your help page, the badge should work on the new Sony Xperia phones. What's more, the badges work in case of some other applications (even the 3rd party apps, like BBM).

Could you kindly please correct this issue? I think the way to resolve it is to implement the new Xperia Home Badge API:
link: developer.sony.com /2016/06/23/xperia-home-badge-api-now-publicly-available/
I have also found a StackOverflow thread about a similar matter, which might be helpful to you:
link: stackoverflow.com /questions/20216806/how-to-add-a-notification-badge-count-to-application-icon-on-sony-xperia-devices

All best,
Marcin.
Title: Re: Message Counter Badge not working on Sony Android 7
Post by: Kostya Vasilyev on June 30, 2017, 07:53:36 pm
Aqua has had support for Sony's new API since end of last year.

Please check app settings -> message notifications -> "launcher icon counter" (it's at the very end of that screen).
Title: Re: Message Counter Badge not working on Sony Android 7
Post by: chlopiec on July 03, 2017, 03:31:47 pm
Thank you for your answer. It is consistent with what I've already found on this website, but unfortunately contrary to what I found in the application.
Please take a look at the screenshots. I especially changed the language settings to English so that I can precisely compare the naming of options.
This is how the end of app settings -> message notifications page looks in my case:
https://www.dropbox.com/s/t6lcpkuypa7gq61/Screenshot_20170701-151913.png

This is what shows up when I try to look for launcher icon counter option:
https://www.dropbox.com/s/6d2kbudirj3b89p/Screenshot_20170701-152028.png

And this is how my app information page looks like (after I've changed the language back to mine"
https://www.dropbox.com/s/vy0ma4l7yjvhekd/Screenshot_20170701-152109.png

Do you know why there is no "launcher icon counter" option on my phone?
Title: Re: Message Counter Badge not working on Sony Android 7
Post by: Kostya Vasilyev on July 04, 2017, 10:03:26 pm
Supposed to be like this (the "text to speech" setting is new, please ignore).

The code checks for a package (app) ID - "com.sonyericsson.home".

Perhaps your phone has a new Android version which uses a different package name?

Can you please go into phone settings -> Apps -> Menu (three dots) -> Show system apps and then

Look for com.sonyericsson.home or similar -- maybe they've renamed it, say "com.sony.home2" or something?
Title: Re: Message Counter Badge not working on Sony Android 7
Post by: pyler on July 05, 2017, 11:11:28 am
Also check for package name "com.sonymobile.home"

https://github.com/leolin310148/ShortcutBadger/commit/e2ff5af14ab8a27be7b06f4d214ac9260a968187
Title: Re: Message Counter Badge not working on Sony Android 7
Post by: Kostya Vasilyev on July 05, 2017, 02:06:06 pm
Thanks @pyler... I'm also going to try resolveContentProvider in case the package name is something else again.
Title: Re: Message Counter Badge not working on Sony Android 7
Post by: Kostya Vasilyev on July 05, 2017, 02:12:26 pm
@chlopiec

Can you please try:

https://www.aqua-mail.com/download/AquaMail-market-1.11.0-488-dev-02a572d8b574.apk
Title: Re: Message Counter Badge not working on Sony Android 7
Post by: chlopiec on July 06, 2017, 02:45:38 am
Dear Kostya,
I've checked and there is no com.sonyericsson.home on my list. I've got the Xperia Home app installed, but it doesn't display the name in the domain format as you asked. The only thing I've found is that on Google Play Store it is available as com.sonymobile.home:
https://play.google.com/store/apps/details?id=com.sonymobile.home
(as @pyler suggested)

I've tried the dev version and it works properly :)
Thank you very much for a quick fix.

Title: Re: Message Counter Badge not working on Sony Android 7
Post by: Kostya Vasilyev on July 06, 2017, 09:34:31 pm
Thanks +1, @pyler!