I am Developing CCS server using XMPP,I followed all steps given on the developer.android website.This code(using java smack library) runs perfectly,as I am getting notification on my android mobile app.I have CCS service enabled on my App Engine Project.But when I tried to deploy it on App engine I am getting.
java.lang.NoClassDefFound Exception for
org/jivesoftware/Smack/XMPPException !!!!!!
after going through some websites (including this also)and developer.android site I found that
Note that Google App Engine does not support connections to CCS
My question is:
1>>.App Engine doesn't support java smack library or it don't support connection to ccs(xmpp)end point at all?
google has also provided XMPP service to App Engine
2>>.Is it possible to implement GCM CCS(XMPP) server using googles XMPP library?If it is possible please give some reference or tutorial.
I can really use some help with this questions,because I am so confused what do next!!!
thanks in advance!!!
It seems that GAE does not support connections to CCS. https://developer.android.com/google/gcm/server.html
This documentation gives a hint that it is possible. Also have a look into that post.
Related
Can GCM (Google Cloud Messaging) be used as a two way communication between the device and the server?
Please Help with the links.
Yes it can. That's what GCM CCS (Cloud Connection Server) is all about. It enables you to use GCM both both cloud to device and device to cloud messaging. The older version of GCM (the HTTP version) only supports messages from the server to the device (cloud to device).
Yes you can use XMPP and HTTP to complete what you are looking for. GCM offers both services. You can find a great starter tut here http://www.grokkingandroid.com/xmpp-server-google-cloud-messaging/
The google documentation isn't bad either. https://developer.android.com/google/gcm/server.html
The Smack API is what you will use to get XMPP working on the server side. You can find that here http://www.igniterealtime.org/projects/smack/
We also use Retrofit http://square.github.io/retrofit/ which is great for handing off objects via http.
Good luck, be sure to ask questions, figuring it all out in the beginning is a bit painful but worth it in the end. Also checkout RabitMQ http://www.rabbitmq.com/, it's similar to GCM
I am developing the MDM server in java for android devices. I found that we can able to establish communication between server to device with Google Cloud Messaging Server.
Is there any way for server communication to android device in java? Please provide any solution apart from GCM.
You have to implement your own way of doing this. You might look at MQTT for this.
Is it possible to connect to google and run a google apps script from a desktop java application?
I found this info:
https://developers.google.com/appengine/docs/java/urlfetch/usingjavanet?hl=en#Simple_Requests_With_URLs
It says that you can connect to google app engine from java application via HTTP or HTTPS using java.net.URLConnection, the page has some examples, but none to connect to google apps script.
The reason I need to connect to google app script is because I have a firewall on my company so I can't connect to gmail via smpp or IMAP, so I want to send gmail mails from a google script.
Thank you very much.
Yes you can. Look at how to publish an apps script in gas help. Publish it as anonymous and return a contentService. Then urlFetch it from java passing the necessary url params.
I'm wondering if it is possible to host an Application Server on Google App Engine, I'm not planning to host a Web Application, but yes an App Server.
For example, hosting a Chat Server, that would Authenticate users log ins, register new users, establish a connection between two users running on clients developed to work with that Server.
If not, is there a similar service to GAE which I can use for that purpose.
Thanks a lot.
The XMPP and Channel APIs should let yo do it. If your client can make HTTP requests and your server can respond to them, then yes, you should be able to do it.
Yes this is possible.
Have a look at the Google Docs for an introduction to what the platform looks like and what APIs are available. And crucially what restrictions there are. For chat applications you might be interested in the Channel API.
i want to develop gtalk application for the mobile
please tell me the name of library that is used to access the gmail account thr J2ME
Your Question title says you want to access gmail emails , but in the description it says to develop gtalk application .
If you are looking for gtalk client development check out the following resources
Why you need to develop gtalk client for Mobiles , There is already a Plenty of gtalk . To learn you can try with Open Source Application to get started .
MGtalk : Google Talk for mobile project .Jabber client for j2me midp 2.0 platform, supports some Google Talk server features. May run on any j2me midp 2.0 mobile phone or communicator.
GTMobile is a client of Google Talk that run on java phones. It requires CLDC 1.1 and MIDP 2.0 support.
Both uses JabberService
EDIT If you are looking for gmail in Mobile these API will come Handy for you
Mail4me : is a lightweight implementation of the popular SMTP, POP3 and IMAP protocols - including MIME support - allowing wireless J2ME/MIDP devices to access the e-mail service at any time, and from any place
API docs for Mail4me
JavaMail can also be used for developing .
mMail midlet is a useful email client for mobile Java (J2ME) devices supporting GPRS data transfer. It is able to send and receive simple plain-text email messages.
Hope this Helps !
JavaMail can not be using on the J2me Platform