Author Topic: Gmail Problem - Oauth  (Read 15525 times)

desamson

  • Newbie
  • *
  • Posts: 1
Gmail Problem - Oauth
« on: August 26, 2015, 12:04:46 pm »
Hi guys,
we have a Problem using Google's gmail with aquamail. Since a few days we get a failure message and aquamail can't synchronize with gmail ONLY when connected to the internet via mobile data. When connected via WLAN / Wifi, there is no Problem. We get this message:

Quote
Fehler:
OAUTH Netzwerkfehler:
org.kman.AquaMail.mail.oauth.
OutNetworkException:
java.io.IOException:
Network Error

We already tried the work-around from this forum (doing the account-wizard again).
It worked stable for a few hours again and then we got the same Message > Failure

What can we do to simply use gamil in auqamail?
Thanks in advance!

-Dennis

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Gmail Problem - Oauth
« Reply #1 on: August 26, 2015, 10:43:13 pm »
If this account is present in system settings, then AquaMail is using Google Play Services to get access (the "access tokens").

And yes, I've seen this fail on some mobile networks (reported by users, debugged via logging).

This is Google's problem to solve and maybe your mobile operator's too.

AquaMail here just "calls" Google Play Services which does all the work (and fails).

What you can do:

- Remove the account from AquaMail

- Add it back as "Internet mail" account type (you may need to enable "allow access to less secure apps" -- Google it)

- DO NOT switch to OAUTH if prompted by AquaMail. Let it keep using "good old" username / password authentication.
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/

qmtfkctc

  • Newbie
  • *
  • Posts: 7
Re: Gmail Problem - Oauth
« Reply #2 on: September 15, 2015, 11:43:28 am »
possibly you have deactivated/limited background data on mobile network completely or for google services only.
Activating mobile data for goole services was the solution in my case.

tyiori

  • Newbie
  • *
  • Posts: 1
Re: Gmail Problem - Oauth
« Reply #3 on: December 08, 2015, 12:57:13 pm »
Adding the Gmail-Account via "Internet Mail" worked perfectly for me.
No Settings had to be changed and my Mails are updated as planned.

Thank you for this simple solution!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Gmail Problem - Oauth
« Reply #4 on: December 08, 2015, 10:26:20 pm »
Re: Activating mobile data for goole services was the solution in my case

Ah, maybe that's what's behind those mysterious failures... People turning off mobile data access specifically for Play Services to save battery / traffic. Can't blame them, but this made the issue quite puzzling for me.

But maybe that's not the whole story, and "genuine" failures can happen too.

1.6.0.2-2 from last night uses an updated version of Google Play Services library (8.* vs. 7.* in previous AquaMail versions), maybe it'll help, but really who can know...
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/

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Gmail Problem - Oauth
« Reply #5 on: December 08, 2015, 11:45:49 pm »
Re: Activating mobile data for goole services was the solution in my case

Ah, maybe that's what's behind those mysterious failures... People turning off mobile data access specifically for Play Services to save battery / traffic. Can't blame them, but this made the issue quite puzzling for me.

Unfortunately,  Google didn't do a good job separating (or at least explaining the separation)  of what in "Google play (services) " is for other apps to work, and what is for Google Play's own play pleasure (e.g. constantly updating itself without asking any permission) .

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Gmail Problem - Oauth
« Reply #6 on: December 09, 2015, 12:32:21 am »
Maybe renaming it to "Everything *including* the kitchen sink" would help with this perception problem. Afraid they might not do that though.
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/