开发者

ejabberd auto allow subscription

开发者 https://www.devze.com 2023-04-11 00:50 出处:网络
I have installed and run ejabberd successfully. I\'ve tested the chat fun开发者_如何学运维ction and it works well.

I have installed and run ejabberd successfully. I've tested the chat fun开发者_如何学运维ction and it works well.

I have a problem with the 'Add Buddy' process. When I add a buddy, the buddy has to manually approve the request. I would like to skip this step and have all buddy requests to be approved automatically.

I'm getting a presence type of 'subscribe' for authorization requests. How can I authorize a buddy programmatically? I'm using objective c.


Ok I found the answer to my question.

Basically, just follow the protocol on http://xmpp.org/rfcs/rfc3921.html#sub and programmatically send a subscribe request.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号