xmppframework - How to run XMPP Room Join & Invite process in background Thread in iOS -
i have got issue room join & inviting members xmpp room in ios. have clause needs join 200 rooms @ login, did blocks main thread. can suggest approach handle hundreds of room joining seemless without blocking main thread.
thanks,
why did join 200 rooms @ time in first place?
my guess need join able group chats? inefficient way. think need implement offline message
push notification
.
look ejabberd_mod_offline_post
- first config room must member-only room, , add users members right after created it, able total.
- add above model ejabberd models.
- implement callback service handle callback post.
the idea when user go offline:
- in one-to-one case, offline_message_hook raised
- in muc case, muc_filter_message raised, , 1 not presence-available offline.
Comments
Post a Comment