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
There is no ejabberd plugin for apns or gcm. I think you have two main options here:
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).
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.