Openfire Sending Push notification when user is offline

I am using openfire 3.9.3 server and Android and IOS as client. I want to send messages via push notification to both clients when recipient user is offline. And when push is sent sender should get message receipt.

for this, i tried :

  • making interceptor: In this, i didn't get any exception or message failure for which i can track.

  • modify openfire code also. But i don't think it is a good solution.

  • I just want to know that, is there any plugin for it or modifying the openfire code is the last solution for it?


    Ok I got the answer after searching and reading docs..

    Openfire provides custom plugin support. So I created my own plugin for it that supports this feature.

    Here is a better step-by-step explanation for openfire plugin development.

    In brief,

    after building openfire source and creating openfire plugin structure as per the doc.

  • Implement openfire Plugin interface,
  • Put an entry for your plugin class in plugin.xml,
  • Put your db in database folder,
  • Initialize your interceptors in your plugin classes.
  • Build it with ant tool.
  • Upload your generated jar in your openfire plugins list via admin panel.
  • 链接地址: http://www.djcxy.com/p/23294.html

    上一篇: CoAP和DTLS集成

    下一篇: Openfire发送当用户离线时发送推送通知