简体   繁体   中英

How to implement third party GCM - CCS XMPP server using openfire?

Currently I am working on instant messaging chat application in which I need to implement third party chat server.

I am following this tutorial

Complete project available on Github here .

When I download this project it provides me with two project folders; the first is named GCMDemo and the second is GCM_CCS_application .

I import GCMDemo in eclipse; it provides me a GCM client for sending message and it's working fine.

But I don't know how to use GCM_CCS_application . This is a java application. GSM_CCS_application is not an android application; it is for server-side applications.

I have openfire server installed on my computer but don't know how to use openfire for this application. So please somebody tell me how to implement this server-side application.

Hope you have figured this out by now, if not read on.. Basically you DO NOT need Openfire for this purpose. Google's server will do the job of Openfire. Your server application and your android application are both "users" or clients of the Google's xmpp server. The applications can connect to the Google server using your project ID and API key. Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM