Did you try calling XMPPService.getPresence(JID, JID) with your bot's JID as the second argument?
On Sat, Jan 2, 2010 at 11:54 AM, Sahil Mahajan <[email protected]> wrote: > Hi > > I am facing same problem. > Did you find any solution to this problem? > getPresence is always returning false. > > On Dec 30 2009, 2:27 pm, Ankur <[email protected]> wrote: > > Hi, > > > > I have a very simple application where i sent a chat message to my > > application and check if user is available.But i am always getting as > > false. > > > > here is my code. > > > > XMPPServicexmpp= XMPPServiceFactory.getXMPPService(); > > Message message =xmpp.parseMessage(req); > > > > JID fromJid = message.getFromJid(); > > > > Presence p=xmpp.getPresence(fromJid); > > String status =p.isAvailable().toString(); > > > > I am getting status as false always. > > > > I even tried with fromJid.getId() to get user status but i get the > > same result. > > > > i tried with gmail chat and gtalk both.I can see my bot in my contact > > lists with available sign. > > > > is there any way to get the correct status or am i missing anything > > here..... > > -- > > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > >--
You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
