esl / MongooseIM

MongooseIM is Erlang Solutions' robust, scalable and efficient XMPP server, aimed at large installations. Specifically designed for enterprise purposes, it is fault-tolerant and can utilise the resources of multiple clustered machines.
Other
1.64k stars 422 forks source link

Mongooseim not sending push notifications to disconnected clients #4215

Closed alvinlal closed 2 months ago

alvinlal commented 4 months ago

MongooseIM version: 6.1.1 Installed from: pkg Erlang/OTP version: 26

I have setup push notification on mongooseim and it only sends push notifications if the client sends an unavailable presence or disconnect manually. No push notification is being sent when the client's connection is suddenly broken and becomes offline. Shouldn't the server detect that the client has become offline after some seconds and sent the messages received during that period to the push service (i am using mongoosepush).

DenysGonchar commented 4 months ago

there are a few things you need to take into account here:

Alternative solutions:

alvinlal commented 4 months ago

i do have mod_event_pusher_push_plugin_enhanced enabled, but don't have mod_ping enabled, i will enable it and see 👍

alvinlal commented 3 months ago

hi @DenysGonchar , i have tried enabling mod_ping , but still the issue persists, for some reason, server is not detecting that the client has gone offline and not sending push notifications, is there any other way that i could debug this ?

alvinlal commented 2 months ago

issue was solved by enabling serverside and client side pinging