AquaMail Forum
English - Android => Bug reports => Topic started by: jochenf on June 10, 2014, 12:11:24 pm
-
Hi,
i use SmartLauncher with SmartLauncherNotifications and all apps show incoming messages on the homescreen - expect AquaMail. :'(
Don't know if this is a problem in AquaMail or SmartLauncher, so it would be nice somebody could check this and say on which site the problem exists.
Thanks,
Jochen
-
This one?
https://play.google.com/store/apps/details?id=ginlemon.flowerfree
And this one?
https://play.google.com/store/apps/details?id=ginlemon.smartlauncher.notifier
By "notifications", do you mean "an unread count over the app's icon, like on the iPhone"?
And by "all apps", do you mean "all apps for which the developers of Smart Launcher added special code"?
Well, if so, I've not gotten any emails from Ginlemon Software about integrating. And since this is not a standard Android feature, it can't "just work".
-
This one? And this one?
Yes, posting the links was unfortunately not allowed.
By "notifications", do you mean "an unread count over the app's icon, like on the iPhone"?
Exactly.
And by "all apps", do you mean "all apps for which the developers of Smart Launcher added special code"?
Don't know if this is necessary, all other messengers i use like Threema/Xabber/MySMS works so I thought maybe AquaMail makes something special.
Well, if so, I've not gotten any emails from Ginlemon Software about integrating. And since this is not a standard Android feature, it can't "just work".
I asked there before posting here, but don't get an answer yet.
Thanks for your fast response.
-
There is no standard, official way to do this in Android.
Looks like they've piggybacked on the "accessibility" API, intercepting status bar notifications and trying to guess what they represent.
This approach just does not work right all the time. I mean, check Google Play comments for their app - multiple complaints about counters being wrong.
On my part, I have "unread counter" integration with Apex Launcher, Nova Launcher (Tesla Unread), Samsung TouchWiz, Sony launchers, and the counter's actual value is "pushed" directly and is therefore accurate.
If those guys want to integrate properly, well, I'll support that.
---
PS - links -- yes, spam protection... sorry about the inconvenience, but everyone here already has a Prada watch, right?
-
I was going to ask the same, but found this thread, so I will just add my support for finding some way to do this.
I have sent a mail to the Smart Launcher author pointing to this thread.
-
Thank you.
If they contact me, I'll be happy to work with them.
-
I'm the SL developer. Smart Launcher actually supports several systems to get notifications.
1 - On android < 4.3 it uses the accessibility service.
2 - On android >= 4.3 it uses the notification listener.
3 - It supports the same Apex API.
So if aquamail already supports the Apex APIs this means that the problem depends on SL. Can you provide us more info about the problem?
Thank you,
Vincenzo
-
Thank you for responding, I really appreciate this.
My code was sending Apex broadcasts only when Apex was detected (by package name).
I changed my code to also check for "ginlemon.smartlauncher.notifier".
It's working much better now, but --
- the counter in Smart Launcher updates to the correct value via the broadcast
- and then gets overwritten almost immediately when my code posts a status bar notification
I'm going to post my changes as 1.4.0.7 on the forum later tonight or some time tomorrow.
Maybe you could change things on your side to disable the accessibility / notification monitoring for apps that send Apex broadcasts, or specifically for AquaMail if versionCode >= 2100443. My package name is "org.kman.AquaMail".
-
PS - I've found that if I disable Smart Launcher's access to notifications, then the counters sent via Apex broadcasts (my latest changes, 1.4.0.7) will not be overwritten.
This could be a temporary workaround until Mr. Ginlemon changes things on his side, ignoring Aqua's status bar notifications (I hope he does).
-
1.4.0.7 posted:
http://www.aqua-mail.com/forum/index.php?topic=2496.0
-
Hi Kostya,
Smart Launcher automatically ignores statusbar notifications for an app when it detect that the app supports the Apex's APIs.
Can you send me an apk with the recent changes? (gingenzo@ gmail .com)
Thank you
-
Done.
-
I was just surprised to see a notification after the last aquamail update from the playstore.
Thank you very much for implementing this! :)
-
Indeed, thank you to both Kostya and Vincenzo for working this out :).
-
This is what happens when developers work together rather than point fingers at each other.
I'm also happy to see this work, and going to update the web site now.