AnsweredAssumed Answered

How to use smack 4.1.4 for Android -  Googlr Cloud Messaging.

Question asked by Yrii on Sep 22, 2015

Help me please. How to use smack 4.1.4 for Android Googlr Cloud Messaging. Please, write example.

 

https://developers.google.com/cloud-messaging/ccs

 

username - What need write?

password - API key, need write?

setServiceName -  What need write?

setHost -  What need write?

setPort - 5236 or 5235 need ?

 

 

I see documentation:

XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()

   .setUsernameAndPassword("username", "password")

   .setServiceName("jabber.org")

   .setHost("earl.jabber.org")

   .setPort(8222)

   .build();

 

 

  AbstractXMPPConnection conn2 = new XMPPTCPConnection(config);

  conn2.connect();

Outcomes