Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Check if user mail is online on gmail

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.

My question is how can i know on gmail if the user is online?

I know there is GMail API and JavaMail API but still don't know how to do it.

Thanks in advance.
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaMail definitely has nothing in this regard. It seems more a function of Hangout or Chat. But many people don't like to advertise whether they're online or not, so it's possible there's nothing in the API.
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By user is "online", are you referring to gtalk chat status? If so, the term you are looking for is "presence API" and the technologies to search are XMPP and Jabber.
Do a quick test of whether google announces presence to XMPP clients using an android XMPP app like Xabber or a desktop app like pidgin (last time I used pidgin, it did support, but that was couple of years ago).
If they show presence of your contacts correctly, then it's confirmed that google supports presence notifications over XMPP.
You can then implement the same in your own app using some 3rd party XMPP library.
 
reply
    Bookmark Topic Watch Topic
  • New Topic