Openfire Sending Push notification when user is offline

杀马特。学长 韩版系。学妹 提交于 2019-12-09 17:26:00

问题


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 :

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

  2. 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?


回答1:


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.

  1. Implement openfire Plugin interface,
  2. Put an entry for your plugin class in plugin.xml,
  3. Put your db in database folder,
  4. Initialize your interceptors in your plugin classes.
  5. Build it with ant tool.
  6. Upload your generated jar in your openfire plugins list via admin panel.


来源:https://stackoverflow.com/questions/26714651/openfire-sending-push-notification-when-user-is-offline

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!