Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > iPhone, iPod and iPad > iPhone

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 24, 2010, 03:11 AM   #1
codz
macrumors newbie
 
Join Date: Nov 2010
Lightbulb Push notifications explained

I did a bit of research about push notification on iPhone and the best explanatory text is here:
http://translated.by/you/apple-push-...uide/original/

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.

Last edited by codz; Nov 24, 2010 at 07:19 AM. Reason: note added
codz is offline   0 Reply With Quote
Old Nov 24, 2010, 04:15 AM   #2
SomeDudeAsking
macrumors 65816
 
Join Date: Nov 2010
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5)

For most things, push notifications are as annoying as he'll. I don't want my phone going off every minute because some game or someone just updated their FarceBook page.
SomeDudeAsking is offline   0 Reply With Quote
Old Nov 24, 2010, 05:29 AM   #3
gtmac
macrumors 6502a
 
Join Date: Jun 2010
Quote:
Originally Posted by SomeDudeAsking View Post

For most things, push notifications are as annoying as he'll. I don't want my phone going off every minute because some game or someone just updated their FarceBook page.
Agree 100%
gtmac is offline   0 Reply With Quote
Old Nov 24, 2010, 05:53 AM   #4
kosmiq
macrumors newbie
 
Join Date: Sep 2010
I think Push notifications are great and I use then. Moreover I always have WiFi enabled and I also have 3G on at all times. I also consider myself a normal user who surfs, checks facebook etc on my phone and my battery often lasts two days without problem. I am however very often on a WiFi network both at work and at home.

iPhone 4 here in Sweden.
kosmiq is offline   0 Reply With Quote
Old Feb 10, 2011, 09:30 AM   #5
codz
Thread Starter
macrumors newbie
 
Join Date: Nov 2010
Having Wifi at work is best, that way the phone will use Wifi though 3G is enabled (Wifi has priority) and battery life is max
codz is offline   0 Reply With Quote
Old Feb 10, 2011, 09:40 AM   #6
Daveoc64
macrumors 601
 
Join Date: Jan 2008
Location: Bristol, UK
Quote:
Originally Posted by codz View Post
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.
Quote:
Originally Posted by codz View Post
Having Wifi at work is best, that way the phone will use Wifi though 3G is enabled (Wifi has priority) and battery life is max
Normally dragging up an antique thread like this is annoying, yet this provides an opportunity to correct both of your posts!

When an iPhone is not connected to mains power, it will only use Wi-Fi:

1) When the screen is "on" (not in sleep mode)
2) When an application is using the Wi-Fi connection (e.g. Pandora)
3) When Cellular data is unavailable
__________________
Nexus 5 32GB Black (Three UK) | Nexus 7 (2012) | Kindle Paperwhite (2013)
iPhone 4 32GB
White MacBook (Late 2007)
Windows 8.1 | iCloud, Dropbox, Spotify Premium
Daveoc64 is offline   0 Reply With Quote
Old Feb 10, 2011, 10:10 AM   #7
Travisimo
macrumors 6502a
 
Join Date: Dec 2009
I really like push notifications and don't mind the battery hit. However, some of them just aren't consistent, like the Facebook app. More than half of the time, I don't get a push from Facebook. It's not consistent at all, so I have to rely on push e-mail notifications instead for that.
Travisimo is offline   0 Reply With Quote
Old Feb 10, 2011, 10:18 AM   #8
TheNewDude
macrumors 6502a
 
Join Date: Mar 2010
Quote:
Originally Posted by Travisimo View Post
I really like push notifications and don't mind the battery hit. However, some of them just aren't consistent, like the Facebook app. More than half of the time, I don't get a push from Facebook. It's not consistent at all, so I have to rely on push e-mail notifications instead for that.
Totally agree! Facebook has the WORST push notification ever!! I am not a frequent facebook user but get messages on it from time to time. Sometimes I don't find out I have a message till 3-4 days later when i manually check for them.
__________________
Flickr Page
TheNewDude is offline   0 Reply With Quote
Old Feb 10, 2011, 11:59 AM   #9
codz
Thread Starter
macrumors newbie
 
Join Date: Nov 2010
Dave, seems you're right, Wifi is off on screen lock, and 3G/G is used for push notification (persistent IP connection). That explains adding "cellular data on/off" in iOS 4. With that off and in a Wifi area all is great.

Why then the official recommendation to turn Wifi off when you're not in a Wifi area? While the phone is locked Wifi is not searching for hotspots. Anyway 3G consumes more than Wifi so why turn off Wifi is ahead turn off 3G in the official recommendation for battery life
codz is offline   0 Reply With Quote
Old Jan 14, 2013, 09:26 AM   #10
frankge973
macrumors newbie
 
Join Date: Dec 2012
I've iPhone4 with Ios 5.1.1.
Why I receive push notifications delayed ? (6/7 minutes)?
I've seen that this doesn't happen when iPhone is over Wifi or when it is connected to supply.
And I could say also that previously didn't happen with anothe mobile operator.
In which way I could solve this severe problem?
My mobile operator says that for them all it's ok.
frankge973 is offline   0 Reply With Quote

Reply
MacRumors Forums > iPhone, iPod and iPad > iPhone

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone: No Push Notifications JackieInCo Jailbreaks and iOS Hacks 0 Jan 16, 2014 04:58 PM
Push notifications stevemiller iOS 7 2 Dec 1, 2013 03:53 PM
Push Notifications benterz222 OS X Mavericks (10.9) 1 Oct 23, 2013 12:56 PM
push notifications Afbar1114 iPhone 2 Mar 27, 2013 11:30 AM

Forum Jump

All times are GMT -5. The time now is 04:55 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC