AnsweredAssumed Answered

XEP-0004

Question asked by Michael on May 16, 2016
Latest reply on May 21, 2016 by Michael

Hi...

I have never done this before, so here goes....

I need to submit a XEP-0004 form using SMACK....

The info I need to submit is as follows. It is used to submit your GCM key for use with mod_push:

 

<iq type='set' to='example.net' id='exec1'>

  <command xmlns='http://jabber.org/protocol/commands'

   node='register-push-apns'

   action='execute'>

  <x xmlns='jabber:x:data' type='submit'>

  <field

   var='token'>

  <value>r3qpHKmzZHjYKYbG7yI4fhY+DWKqFZE5ZJEM8P+lDDo=</value>

  </field>

  <field var='device-name'><value>Home</value></field>

  </x>

  </command>

</iq>

 

Can anyone show me how to submit with SMACK API forms? Please?

Thanks....

Michael.

Outcomes