Skip to content
zengjiansheng edited this page Jan 9, 2014 · 4 revisions

## 插件说明: 在手机的聊天应用中,经常出现的一个需求就是把用户的离线消息通过推送系统推送到用户的手机上,为了实现这个功能,本人就开发了本插件,这个openfire 插件是拦截了发给openfire用户的离线消息,然后根据自身的业务逻辑推送到手机上。

## 使用方法: 在offlinemsg\src\java\org\jivesoftware\openfire\plugin\OfflineMsg.java找到下面的代码:

                	/*
                	 * add your code here to send offline msg
                	 * recipient.getNode() : receive's id,for example,if  receive's jid is "23@localhost", receive's id is "23"
                	 * content: message content
                	 */

在插件中已经把离线消息拦截下来,用户根据自身的业务逻辑在这里添加推送代码。

Clone this wiki locally