Results 1 to 5 of 5
  1. #1
    Push notifications explained

    Member Since
    Nov 24, 2010
    Posts
    2
    Lightbulb Push notifications explained
    I did a bit of research about push notification on iPhone and the best explanatory text is here:


    Basically, in regard of a iPhone user which activated the push notifications (one or more apps using it, being the same thing), the Apple's APNS server mantains a "persistent IP connection" with your iPhone in order to deliver notifications when the app (Facebook, email, eBuddy a.s.o) needs to 'say' something to you.

    The notification itself it's a 256bytes of data (at most). But what I wanted to know is how the "persistent IP connection" works and how it's translated in data usage on the iPhone and in battery consumption.

    It is established that push notifications will work either with a data plan (using cellular data) or over WiFi. On other words, your push enabled iPhone will send/receive bits of data frequently with APNS in order to be ready for any push notification. This can be demonstrated by checking the Usage window (in General Settings) from time to time and see the cellular data usage grow some Kbs every 10 minutes or so. If you are on Wifi, this way of data transfer is preffered (in order not to make traffic on user's data plan) and the "persistent IP connection" is done trough Wifi.

    That explains also why the iPhone consumes more battery in an area without WiFi connection if you have Wifi enabled and push enabled - during this permanent connection with APNS the iPhone tries to use Wifi (seeing it enabled) searches for a Wifi network, it does not find it, then goes to use cellular data. All this searching for WiFi network frequently consumes battery.

    That explains also why with push enabled an iPhone consumes more battery on 3G rather than on EDGE/2G (3G disabled) - because every 3G connection uses more battery because it requires connection to at least two carrier towers (as opposes to only the closest tower on EDGE/2G) and that translates to increased power (Watts) from the iPhone.

    Unfortunately disabling 3G is not really an option for iPhone users (especially on iOS 4.x.x) because on EDGE/2G you can't receive calls while a data connection is in progress (you browsing the Internet or push notification keeping that "persistent IP connection" with the APNS - which is also data, or a faulty app like Skype in the background sending data). But that's another explanation (3G/EDGE explained).

    Conclusion:

    If you want push notification (a very nice functionality) - enable 3G, enable WiFi only(!) where you have a WiFi connection - and be prepared for only one day of normal use of the iPhone, or even less if you are a heavy user of apps that require data transfer on 3G

    If you want two days of using the iPhone (mostly for calls) - disable push notification, set Manual Fetch to your email accounts, enable 3G (in order not to have missed calls because of the EDGE/2G impossible voice over data)

    If you want three days of using the iPhone - disable push notifications, set Manual Fetch to your email accounts, disable 3G (but be sure there is no app in the background using data connection), and set Airplane mode during the night (understanding you will not be able to receive any calls during that)

    Note: The above are for the iPhone 3GS, as for iPhone 4, having a 1420mAh battery vs 3GS's 1219mAh, it should last two days with push and three days without push.

  2. #2
    Push notifications explained
    schweb's Avatar
    Member Since
    Oct 27, 2002
    Location
    Cleveland, Ohio
    Posts
    13,190
    Specs:
    MacBook Pro | LED Cinema Display | iPhone 4 | iPad 2
    I've moved your post to a more proper forum; please be sure to check the forum descriptions in the future to find the best place to post.

    By posting in the right forum you help people not only find your question faster, but it helps others looking for the same information in the future.

    Thanks for understanding!
    schweb | community leader
    flickr facebook twitter tumblr google+ about.me

    Mac-Forums: On Twitter | On Facebook | On Flickr


  3. #3
    Push notifications explained

    Member Since
    Nov 24, 2010
    Posts
    2
    The link I've posted works, erasing a good reference link was not very nice, wasn't it? I post it again below, for fellows to read if they want to learn about push notifications:

    **link removed**

    I've posted in the main iPhone area because my thread about push notifications is not related to a specific iOS or an app, it's more a hardware function. But it's your decision and I can't do anything but oblige

  4. #4
    Push notifications explained
    bobtomay's Avatar
    Member Since
    Dec 22, 2006
    Location
    Texas, where else?
    Posts
    26,209
    Specs:
    15" MBP '06 2.33 C2D 4GB 10.7; 13" MBA '11 1.8 i7 4GB 10.10; 21" iMac '13 2.9 i5 8GB 10.10; 5s & 5c
    It was not working earlier.

    How about the link to the original page from Apple - here - instead of a 3rd party site just reprinting the original in a much harder to read format.
    I cannot be held responsible for the things that come out of my mouth.
    In the Windows world, most everything folks don't understand is called a virus.

  5. #5
    Push notifications explained
    schweb's Avatar
    Member Since
    Oct 27, 2002
    Location
    Cleveland, Ohio
    Posts
    13,190
    Specs:
    MacBook Pro | LED Cinema Display | iPhone 4 | iPad 2
    Quote Originally Posted by codz View Post
    The link I've posted works, erasing a good reference link was not very nice, wasn't it? I post it again below, for fellows to read if they want to learn about push notifications:

    **link removed**

    I've posted in the main iPhone area because my thread about push notifications is not related to a specific iOS or an app, it's more a hardware function. But it's your decision and I can't do anything but oblige
    I've removed your link again. bobtomay posted the original below, don't really feel like allowing Russian retranslations from sketchy sites.

    As for forum location, Push is an iOS function, it has nothing to do with hardware and it's certainly not iPhone specific since they also happen on the iPad.
    schweb | community leader
    flickr facebook twitter tumblr google+ about.me

    Mac-Forums: On Twitter | On Facebook | On Flickr


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Advertisement in push notifications
    By fonnejunkers in forum iOS Development
    Replies: 0
    Last Post: 01-23-2013, 08:17 AM
  2. push notifications
    By s.furlani in forum iOS Development
    Replies: 1
    Last Post: 01-18-2012, 04:05 PM
  3. facebook app push notifications not working
    By greyhood in forum iOS and Apps
    Replies: 5
    Last Post: 01-12-2012, 04:00 AM
  4. Mail App and Push Notifications
    By MrShepherd in forum OS X - Apps and Games
    Replies: 0
    Last Post: 10-24-2011, 11:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •