Author Topic: Smart Launcher Notifications not working with Aqua Mail?  (Read 12096 times)

jochenf

  • Newbie
  • *
  • Posts: 5
Smart Launcher Notifications not working with Aqua Mail?
« 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

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #1 on: June 11, 2014, 01:48:53 am »
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".
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/

jochenf

  • Newbie
  • *
  • Posts: 5
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #2 on: June 11, 2014, 11:33:29 am »
Quote
This one? And this one?
Yes, posting the links was unfortunately not allowed.

Quote
By "notifications", do you mean "an unread count over the app's icon, like on the iPhone"?
Exactly.

Quote
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.

Quote
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.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #3 on: June 11, 2014, 04:01:21 pm »
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?
« Last Edit: June 11, 2014, 04:08:58 pm by Kostya Vasilyev, Aqua Mail »
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/

jibsen

  • Newbie
  • *
  • Posts: 4
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #4 on: June 18, 2014, 02:26:02 pm »
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.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #5 on: June 19, 2014, 08:37:44 pm »
Thank you.

If they contact me, I'll be happy to work with them.
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/

ginlemon

  • Newbie
  • *
  • Posts: 2
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #6 on: June 20, 2014, 01:32:50 pm »
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


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #7 on: June 21, 2014, 11:40:04 pm »
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".
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: Smart Launcher Notifications not working with Aqua Mail?
« Reply #8 on: June 21, 2014, 11:59:01 pm »
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).
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
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/

ginlemon

  • Newbie
  • *
  • Posts: 2
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #10 on: June 23, 2014, 05:08:32 pm »
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

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #11 on: June 23, 2014, 08:34:05 pm »
Done.
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/

jochenf

  • Newbie
  • *
  • Posts: 5
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #12 on: June 25, 2014, 10:41:01 am »
I was just surprised to see a notification after the last aquamail update from the playstore.

Thank you very much for implementing this!  :)

jibsen

  • Newbie
  • *
  • Posts: 4
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #13 on: June 26, 2014, 08:55:36 pm »
Indeed, thank you to both Kostya and Vincenzo for working this out :).

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Smart Launcher Notifications not working with Aqua Mail?
« Reply #14 on: June 26, 2014, 09:06:51 pm »
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.
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/