We are using ejabberd 17.01 for an iOS and Android application.
We need to create a persistent room where user shall be able to receive messages while they are not connected / joined in the room.
We think ejabberd has the solution for that.
How to configure that in XMPPFramework in iOS and smack in Android SMACK library?
We implemented an XMPPMUCSub
module in a fork of XMPPFramework at https://github.com/Digithurst/XMPPFramework/blob/master/Extensions/MUC-Sub/XMPPMUCSub.h
You setup this module like any other in XMPPFramework and then subscribe users to rooms with the subscribe method.
- (nullable NSString *)subscribe:(nonnull XMPPJID *)user to:(nonnull XMPPJID *)room
nick:(nullable NSString *)nick password:(nullable NSString *)pass;
Events will then start flowing through the XMPPMUCSubDelegate
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With