AquaMail Forum

English => General Discussion => Topic started by: David Harms on July 04, 2014, 06:32:37 pm

Title: New Message Count Not Updating
Post by: David Harms on July 04, 2014, 06:32:37 pm
New message count on desktop icon not updating.

Just upgraded to 4.2.2 last night.  T-Mobile USA,  Galaxy Note 3.  Any help would be appreciated.   Thanks in Advance.

---

[ Kostya ]

A small app that will try to reset the "stuck" counter (Samsung TouchWiz): http://www.aqua-mail.com/forum/index.php?topic=3022.0
Title: Re: New Message Count Not Updating
Post by: npa on July 04, 2014, 09:29:51 pm
I have exactly the same issue and joined this forum to try to resolve this!  Widget shows a constant two unread emails irrespective of whether that's correct.  This was the number when I opened aqua mail after the upgrade.  Can anyone help?
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 05, 2014, 02:28:51 am
Yes, I can help.

In last night's update (1.4.0.27, July 4), icon counter/badge updates are disabled by default, so the launcher is still showing the number put there by the previous version, where it was enabled.

If you'd like to continue using the counter, please see app settings -> message notifications -> Launcher icon counter.

The reason was that someone reported compatibility issues on Android 4.1, Samsung's TouchWiz was crashing (those are manufacturer-specific, internal, undocumented functions, after all).

I apologize for the inconvenience. Bad judgement on my part.

Please check the setting I mentioned above.

It looks like I'll need to post another update tomorrow, enabling the counter by default again, but only for Android 4.2+, where no issues were reported.

You can also install this newer build, which already has this change.

http://www.aqua-mail.com/download/AquaMail-market-1.4.0.27.5.apk

PS - This is only for Samsung / LG / Sony, where the code uses undocumented functions of those devices. Apex / Nova / Smart Launcher are not affected.

PPS - To disable the counter, use same setting. I'm attaching a screenshot.
Title: Re: New Message Count Not Updating
Post by: David Harms on July 05, 2014, 06:37:04 am
Thanks,  much appreciated!
Title: Re: New Message Count Not Updating
Post by: steviweavi on July 05, 2014, 04:44:45 pm
That's good just registered and before I posted I found others experiencing the same problem. Thanks for the solution.
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 05, 2014, 11:22:47 pm
Now I just need to push this to Play for everyone else.

Again, my apologies, I made a bad call trying to resolve it for Samsung's Android 4.1.
Title: Re: New Message Count Not Updating
Post by: LD Jackson on July 10, 2014, 05:41:27 am
I am still experiencing this problem. I am using a Samsung s3 that was just updated to Android 4.4.2. The problem first surfaced last week, right after the first of this series of updates to the app. After the second update (I think), it corrected itself, but has since returned. I have cchanged the setting in question several times, but the problem still persists.
Title: Re: New Message Count Not Updating
Post by: LD Jackson on July 10, 2014, 05:45:55 am
I failed to mention that I am using Apex Launcher and Notifier.
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 10, 2014, 01:10:56 pm
Apex should still work as before, I haven't touched it.

Please check Apex's advanced settings and make sure that "External notifiers" is enabled.
Title: Re: New Message Count Not Updating
Post by: LD Jackson on July 10, 2014, 02:01:42 pm
That setting was enabled. Not sure what was going on, but I changed back to Touch Wiz, enabled the icon badge in Aqua Mail, and it started working properly. It is still working after I went back to Apex.
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 10, 2014, 02:06:28 pm
I just tried it with latest Apex version -- and too, it was a bit slow to actually start working.

The setting in Aqua for Samsung / LG / Sony has no effect on sending counts to Apex / Smart Launcher / Nova, those are always enabled if found to be installed.
Title: Re: New Message Count Not Updating
Post by: vbjelic on July 14, 2014, 06:40:32 pm
Just one question please. This option is not for all Android phones? I have HTC ONE M8 and i can not find this settings for icon badge...
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 14, 2014, 11:22:47 pm
Samsung / LG / Sony, their own launchers
Title: Re: New Message Count Not Updating
Post by: tatoone on July 15, 2014, 01:10:47 pm
Hi guys,

the new email counter on home page work fine for me,
but in lockscreen not work.

The counter of new mail is always empty.


help me, please.
Sorry for my english.
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 15, 2014, 04:30:11 pm
What is this lockscreen counter? Aqua's DashClockWidget extension? Something else?

Title: Re: New Message Count Not Updating
Post by: tatoone on July 15, 2014, 04:33:27 pm
What is this lockscreen counter? Aqua's DashClockWidget extension? Something else?

The aqua icon in lockscreen not show unread mail.
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 15, 2014, 04:38:04 pm
Device? Manufacturer? Android version?

Or do I have to use a crystal ball?

But, in any case, this is all handled by system software, unread counters is an undocumented function, intended for system software, blah blah blah.

I can't believe how much time and energy I've wasted on this.

Please focus on something positive -- the unread count working on the home screen, even though this is an undocumented function, intended for system software, blah blah blah -- rather than something negative.
Title: Re: New Message Count Not Updating
Post by: tatoone on July 15, 2014, 06:37:44 pm
Sorry for missed informations.

galaxy S4, android v4.4.2

Thanks
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 15, 2014, 08:54:26 pm
Galaxy S4, 4.4.2

If you're seeing the count on the app's icon on the launcher screen, it means my code is sending the count to TouchWiz.

What happens after that has nothing to do with my app or me.

PS - please check that you've added the shortcut to the main app (AquaMail), not the unlocker (AquaMail Pro Unlocker).

Title: Re: New Message Count Not Updating
Post by: LD Jackson on July 26, 2014, 04:51:22 pm
I wrote earlier that the icon count was working as it should earlier, but that is no longer the case. It works much of the time, but at least a couple times each day, it stops. The only way I can correct that is to go back into Touch Wiz, disable the icon notification in Aqua Mail, go back into Apex, and turn it back on. After that, it will work for a while and keep a corrected count. Then I have to do that all over again later.
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 26, 2014, 10:37:53 pm
So you're having the issue with Apex Launcher, not TouchWiz icon?

The code in Aqua to send unread counts to Apex is pretty much unrelated to TouchWiz integration code.

However, when you turn the TouchWiz setting off an on, Aqua will re-send the unread counts to all launchers, Apex, Nova, Samsung, LG, Sony.

I keep hearing about issues with Apex from time to time, but every time I try to reproduce (installing latest Apex from Play, as I normally use only standard system launchers on all my devices) -- it works just fine.

Now, since there is a time factor -- could you capture the issue in a debug log, and note the time when the count goes wrong (and when you re-set it), so I could know where to look?
Title: Re: New Message Count Not Updating
Post by: LD Jackson on July 26, 2014, 10:52:37 pm
I have enabled the debug log and will let you know what I find.
Title: Re: New Message Count Not Updating
Post by: Fcasoli on July 26, 2014, 10:58:23 pm
I'm using Apex (latest beta Pro) but my counter is perfect.
Title: Re: New Message Count Not Updating
Post by: LD Jackson on July 28, 2014, 02:33:16 pm
I had to reset the counter again this morning, but the debug file says it is empty. I did notice one thing. When I go into Touch Wiz, the counter is incorrect there as well. So, it appears that Apex is not the only launcher that is having the issue.
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on July 28, 2014, 11:57:52 pm
>> the debug file says it is empty

The debug log file is empty? Nothing in the debug log? Zero length file?
Title: Re: New Message Count Not Updating
Post by: Godwin on August 02, 2014, 02:01:35 am
I have a similar problem.  I'm using Nova launcher Prime with the TeslaUnread plugin.  The unread counter works fine provided I don't use the IMAP push function in AquaMail.  When the IMAP push function is activated the counter only report new emails and not unread ones.  Furthermore the counter always displays one count even when there are no new/unread emails.  Therefore the count is always out by one.

Trev
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on August 02, 2014, 02:05:26 am
@Godwin - which notification logic do you use in Aqua?

Notify about all unread (like before 1.4) or about new unread (available since 1.4, but off by default)? This is in app settings -> message notifications -> "notify about".

There are two worrysome things here: 1) push mail affecting unread message counting and 2) counter being off by one.

What do you see in terms of unread message counts in the app's main window?

Can you record a debug log, with "raw session data" enabled (link here in my signature)?
Title: Re: New Message Count Not Updating
Post by: yoyi on June 15, 2015, 02:33:09 pm
Hi Kostya

I have a similar problem.  Samsung SG5 Lolipop. I'm using Nova launcher Prime with the TeslaUnread plugin. The counter on Touch Wizz Icon always displays one count even when there are no new/unread emails and the counter on NovaLanucher widget shows nothing in the box what is right. Sometimes the counter shows for example 999 unread messages. When I change lanucher to Touch Wizz everything is ok. I've attached screenshots. (SS1 - Nova Lanucher, SS2 - Touch WIZZ, SS3 - Nova Lanucher)
Is there any chance to fix it?
Regars Peter


Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on June 15, 2015, 09:48:34 pm
I've seen some debug logs with Nova where it wasn't displaying what the app was sending (and it only sends the actual count to show)...

Now, that being said:

- I have a small app to reset TouchWiz counter here:

http://www.aqua-mail.com/?page_id=217

( sorry, publishing to Play is just too much trouble -- "promo image", large icon, "featured image"...)

- For Nova, I *think* it can monitor status bar notifications and infer the unread count from them... This isn't necessary for Aqua, since it talks to Nova directly by using special "show unread count" functions -- but having that monitoring can confuse Nova, I think.

So that's something to check too, would be in Nova or Tesla Unread settings somewhere (sorry, don't use them) -- or you can try turning off Tesla's service in system settings -> accessibility -> services.
Title: Re: New Message Count Not Updating
Post by: yoyi on June 15, 2015, 10:59:37 pm
Hi Kostya
Thanks a lot for showing me the way to solve the probem. I've done everything what you suggested but it didn't help. Finally I have uninstaled Tesla and instaled it again and it works!!!
Best regards!
Peter
Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on June 16, 2015, 12:00:50 am
The magic reinstall :)
Title: Re: New Message Count Not Updating
Post by: SurfMan on December 07, 2015, 04:16:10 pm
Just thought I'd mention it here: there is no "new mail counter badge" on the home screen (the 4 icons at the bottom) on Android Marshmallow. I am using a Huawei Nexus 6P. That phone uses stock Android. No crapware from any vendor on there.

Unless I have missed a setting, but I don't believe I did. The Samsung S4 I had before this phone showed it without messing around with the settings.

Title: Re: New Message Count Not Updating
Post by: Kostya Vasilyev on December 07, 2015, 04:18:13 pm
Yes, this is correct, you missed nothing.

Quoting the FAQ:

Quote
Unread message counter on the app's icon (badge)

Android provides no way to do this that’s 1) standard 2) accessible to third party apps.

And yet, AquaMail does this on recent Sony, Samsung and LG devices, in the manufacturer’s standard launcher, by using unofficial, undocumented functions intended for apps built into the system.

Please see app settings under “message notifications”.

There are two more options:

– Using AquaMail’s “message counter” widget.

The widget has four visual themes and can be configured to “point to” a specific account or a folder. You can find it in the same place as all other widgets (this differs between Android 2.* and 3-4.*, there are plenty of tutorials on the Internet if you need one).

– Switching to a third party launcher that has this capability.

Aqua supports: Apex Launcher Pro (you will need to enable “External notifiers” in its settings, under Advanced), Nova Launcher Prime (you’ll need to install Tesla Unread, no other configuration is necessary), Smart Launcher 2 (you’ll need to install Smart Launcher Notifications).
Title: Re: New Message Count Not Updating
Post by: SurfMan on December 08, 2015, 05:35:57 pm
Yes, this is correct, you missed nothing.

Quoting the FAQ:


Right, I see. I read something along the same lines, badges and stuff, on an Android forum. Ah well, I think I prefer the stock Android and get used to the notification area to tell me about it.

Thanks for making a great app!
Title: Re: New Message Count Not Updating
Post by: paras.desai on December 19, 2015, 05:06:53 pm
I think he already mentioned,  he planning to take up encryption,  and it is one of the milestones on his road map,  so..  I think little more patience and......
 It would be right here on one of the Dev build