Send Push notifications to iOS/Android on closed WiFi nework (no internet connection)

                                          https://www.youtube.com/watch?v=tMoUmK-VlMo



http://www.controlanything.com
http://www.controlanything.com/Relay/Device/MIRCC2_WiFi



                                          https://www.youtube.com/watch?v=rmzv716SYkQ


https://www.youtube.com/results?search_query=push+notifications+android



https://www.youtube.com/watch?v=Zx78vrELgXk



http://stackoverflow.com/questions/17423782/send-push-notifications-to-ios-android-on-closed-wifi-nework-no-internet-connec

I would like to create an app that users can use in an area/venue where there is NO GSM/3G or any kind of cell reception. We also only provide a closed WiFi network without an internet uplink, so it's a LAN where devices (PC's and Smartphones) can communicate with each other but not with the outside world (don't ask why :)
The users will be instructed to download the app before they come to the venue.
My app needs to be able to receive push notification but of course it cannot reach Apple's APNS or Google cloud messaging services. The app however does register to our central server on the LAN with an IP. (it logs in when the user is connected to the WiFi network and we have the phonenumber that belongs to a registered phone.)
Now my question is: is there a way to send a push notification when an event is triggered and the app needs to wake up without using or connecting to Apple's or Google's online notification services?? E.g. an on premises push notification service that can be used to send a notification to a users phone based on an event that is triggered by our server?
Any suggestions?
Update: Just to clarify, it's a simple VoiP app that connects to our sip server and let's users call each other so it needs to be fairly real time for the two calls to connect. But apparently you can only wake the app up by push notification and therefor need internet.

ANS
E.g. an on premises push notification service that can be used to send a notification to a users phone based on an event that is triggered by our server?
With respect to Android, the answer is "not really". Your options are:
  • Implement your "push" mechanism in the form of some message queue, where the devices poll looking for messages every so often, or
  • Use a WakeLock and WifiLock to keep the device (and WiFi) powered on constantly, then use something like MQTT for the push message
Either of these will be bad for the battery, though the first one is more configurable in terms of power drain (e.g., if you only check for messages once per hour, it won't be bad).
The reason why GCM can keep the power drain low is because of special hooks for mobile data connections within the OS and chipset, such that the CPU can power down while retaining an open socket connection to the push server, where incoming packets from that server will wake up the device. This is not available for WiFi.
 ANS 2
And for iOS the answer is NO. You cannot push notify a device without utilizing Apple's APNS server. Your only option would be local notifications triggered in some other fashion on the device via WiFi although you would still need to keep the device awake to receive these or perhaps add VOIP service or another compatible service to allow for continuous background processing.
Local Notifications iOS
share|improve this answer

1  
The app is a VoiP app so it needs to be fairly realtime to connect the two calls. It's a simple app, it just connects to our sip server but apparently I cannot make the app wake up without push notifications. I also found this stackoverflow.com/questions/4184655/apns-spoof-fake ... how about that? –  user2542225 Jul 2 '13 at 11:26
 

Comments