ios - How to Enable user registration - eJabberd for mac? -
i working xmpp enable chat. as
refer link: link 1
so sucesfully able register user console. want register username application.
i found links,
find solution that" enable user registration in control panel".
solution of new user register here trial code
nsmutablearray *elements = [nsmutablearray array]; [elements addobject:[nsxmlelement elementwithname:@"username" stringvalue:@"venkat"]]; [elements addobject:[nsxmlelement elementwithname:@"password" stringvalue:@"dfds"]]; [elements addobject:[nsxmlelement elementwithname:@"name" stringvalue:@"eref defg"]]; [elements addobject:[nsxmlelement elementwithname:@"accounttype" stringvalue:@"3"]]; [elements addobject:[nsxmlelement elementwithname:@"devicetoken" stringvalue:@"adfg3455bhjdfsdfhhaqjdsjd635n"]]; [elements addobject:[nsxmlelement elementwithname:@"email" stringvalue:@"abc@bbc.com"]]; [[[self appdelegate] xmppstream] registerwithelements:elements error:nil];
but not working.
can please exacly tell me real problem?
the code showing cannot work. not sending xmpp packet.
xmpp user registration protocol defined in xep-0077 - in-band registration. implementation xmppframework registration here: https://github.com/robbiehanson/xmppframework/tree/master/extensions/xep-0077
you can use native way create user in ejabberd, example ejabberctl command-line, described in ejabberd documentation: ejabberd post install operations.
Comments
Post a Comment