push notifications

Joined
Jan 17, 2012
Messages
1
Reaction score
0
Points
1
I'm new to iOs development, and I have a question about how an app can receive a push notification while it's not running in background or in foreground.
I read that there's a kind of "invisible" background, where the app can receive a push notification starting from server, i think Skype or Facebook use this techinque when you receive a private message (infact you receive it also if the app is completely closed).
What I want to know is if in the same way we can start a request from an app that is closed asking to a server if there are new notifications every "x" minutes in an opposite way (it's not the server that sends, but is the client that asks)
My problem is that I don't want to mantain a notification server, whereas I prefer to let the app periodically run quieries to the server.
Is this possible? if yes, which are the iOs supported versions?
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
I just read up on the UILocalNotificaiton class and this line suggests that all you would do is irritate your users; " If the application is not frontmost and visible, the system displays the alert message, badges the application, and plays a sound—whatever is specified in the notification."

What you are trying to do is create a polling system from you app, but local notification is not designed to run a background process so you are out of luck.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top