Offline message hook for iOS push notifications

Hi

I’m developing an iOS chat based on Openfire server.

currently looking for proper way to hook up the event of a new offline message arrived

, then send a push notifiction (binary payload to Apple’s APNS) with target user’s device token.

I did found the following reference in the community docs:

http://community.igniterealtime.org/docs/DOC-1093

Listen to offline message events

I am not Java programmer nor have much time to write Openfire plugin from scratch,

that is of course, if similar Plugin is already exist.

So my question is, has anyone ever implemented push notifs with Openfire ?

What would be the general flow of things ?

am I missing somehting else that should be considered ?

There is a ejab module called mod_offline, but I really dont want to switch to ejab while Openfire

is much more user friendly and suitable for my needs.

Thanks!!