I am using Ejabberd's MucSub approach to implement a mobile group chat client. A user Creates a Room and sends MUC Invites to the users that must be the members to this group.The clients are configured to auto-accept the MUC invitations and then subscribe to the room's pubsub node for various events.
However the problem with this is that, a user that in not online will not receive any published event till he's not subscribed to the node and this can not happen until the user comes online once, Hence sending push notifications to such users for these events in not possible.
What should be the approach to achieve this?