ejabberd and Push Notification

后端 未结 3 987
谎友^
谎友^ 2021-01-31 21:28

I have integrate chat system in my iOS and Android app using XMPP. I have used ejabberd 2 in the server side. Chatting sytem works fine. I want to integrate push notification in

3条回答
  •  别跟我提以往
    2021-01-31 22:12

    There is no ejabberd plugin for apns or gcm. I think you have two main options here:

    1. Use mod_offline_post module which will send POST request on given url. Then you can use any existing backend language to process both apns and gcm (I am using rails as backend anyway so this is only one more enpoint to handle it).

    2. Based on mod_offline_post, create your own module which will send push notifications instead of POST request. There are few examples and libraries which implements apns and gcm. I.e. apns4erl for apns and this code for gcm. But for that of course it would be good to know some erlang.

提交回复
热议问题