Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure or connect ejabberd 18 xmpp server to App server for push notifications ( XEP-0060 XEP-0357 )?

I am using ejabberd 18 as xmpp server, to use push notification implementing mod_push, we need to connect ejabberd server to App server extending ejabberd 18, Is there any plugins or extensions available ? any other way to enable push notifications.

Correct me if I am wrong.

like image 286
Jithin Avatar asked Sep 07 '18 07:09

Jithin


1 Answers

It looks like it's not possible to use some functionality like this out of the box in Ejabberd Community Edition

Check this page https://www.process-one.net/en/ejabberd/protocols/ and you will see that all mobile P1-Spec extensions are available only at Business Edition

However, I believe you can do what you want with Community Edition following these steps:

  • Implement new plugin for Ejabberd which will listen for messages and understand whether you opponent(s) is offline.
  • If someone is offline - this plugin can make a request (HTTP) to you App Server API to initiate a push delivery

I did this flow for Tigase XMPP Server and it works great for me, so I'm sure the same can be replicated for Ejabberd

like image 87
Rubycon Avatar answered Nov 09 '22 21:11

Rubycon