ejabberd VS push notification

in one of the video which I got to listen from processone , where presenter mentioned that on IOS ejabbard work through Push notification as jabbered module cannot run in background .
with this I am kind of confuse as if we need to rely on push notification and when I say push notification I mean the push notification which are routed through Apple Inc, so then why we even need jabberd ? Am I mistaken or mis understood. My understanding was that jabberd is capable of pushing Message on any mobile device and we can write client for both Android and IOS and can work totally independently without having to need the push notification. In case users turned off line and/or closed the app then we need to use the push notification channel to deliver the messages.
Please clarify.

thanks

Faheem

Ejabberd does not natively

Ejabberd does not natively support sending Push Notifications. However this feature could be implemented. Fortunately you will not have to write any Ejabberd-side code as some kind people already did that and were nice enough to share their work with the public. Check mod_gcm or mod_interact. Though you may need to write a code that takes the output of these modules and forwards it to APNS.

Syndicate content