I’m trying to implement a chat app on Android and IOS using Openfire this will have push notifications with XMPP, the thing is: this chat is going to be in an isolated intranet, with limmited or no access to internet.
So the question is: Can we implement push notifications without the need to reach Apple’s or Google’s push services? Since in theory there will be no outter access to them, perhaps simulating these services?
I was also looking into this some time ago and don’t think it will work without access to your mobile device specific Push Notification Service. There was a GSoC project in 2015 with a very good article explaining how Push works with XMPP, which you can find here.
Push is a term used by many protocols, but when mobile OS vendors say push they mean a very specific thing: using their proprietary cloud service to send notification packets to users. The mobile OS listens on exactly one connection and will wake up an app when a notification arrives for it.