3 ms·
Non-browser apps can kill your battery just as much. Why would it make sense only to restrict browsers in this way?
by mikeash 10y ago
Non-browser apps can kill your battery just as much. Why would it make sense only to restrict browsers in this way?
- bennyg 10y agoIt doesn't restrict just browsers, but every app that uses a WebView. This also isn't the only thing they're doing on that front.
- mikeash 10y agoIt seems unlikely that a non-browser app would embed some other engine. I don't think I've ever seen that done on the Mac, for example.
- mwcampbell 10y agoWhat about every Electron app?
- mikeash 10y agoDoes it count if it's not being used to actually browse the web? I believe Apple would allow that even on iOS.
- citrusui 10y agoIn the case of Electron, the application is the webpage. Apple allows web apps built with Cordova on iOS, but warns that they may be rejected in the approval process if they run too slow.
- MBCook 10y agoI kind of doubt it. My understanding of the rule is Apple will not allow any alternate web renderer on their platform. You might be able to get away with the old opera mobile thing of having another server render the image and just serve the image on the phone, but no one wants to actually do that.
- mikeash 10y agoI'm puzzled at how this reply coexists with the other, older reply next to it pointing out an example of where Apple does allow exactly that.
- jonknee 10y agoAllowing a custom web browser is different than allowing a system wide custom WebView... Since you can't currently do anything similar that's a weird complaint. For example, I have Google Maps installed, but if I make an app and add an MKMapView it is the same old Apple Map it is everywhere.
- abalone 10y ago"Just as much" is a bit of an overstatement considering how primary web browsing is. I mentioned one reason: it's what lets them advertise the battery life for web browsing that they do. Web browsing is a distinctly primary use case for a wide range of people and a fundamental value proposition of the iPhone from day 1. Another thing that makes browser engines special is that they can be used to build "native" apps. Apple famously banned Flash. But if they allowed you to use any old web engine they could run into the same problems with poorly optimized apps on their platform. So Apple's not just forcing other browsers to adhere to their efficiency-first priorities... it's forcing all apps.
- mikeash 10y agoThey could easily stick a "* using Safari" on the battery life claims if it was about advertising. Apps are free to be inefficient. You can use some horribly slow JavaScript engine and build all your code that way. You can use Python or Ruby. Another comment mentions that Cordova apps are allowed, so it doesn't seem like the WebKit requirement even applies when building "native" apps.
- MBCook 10y agoNo one cares, no one reads asterisks. There often useful/important, but they might as will not be on boxes. Either that or they signal a lie. Like the old windows laptops that used to advertise great battery life is long as you didn't actually move the mouse or do anything and had the display brightness at zero. The other commenters are right. If people bought an iPhone, downloaded Chrome (the REAL Chrome), and use their phone and got six hours of battery life who do you think will get blamed? Apple. People here all sorts of stories about how Apple doesn't have good battery life in the use chrome on their computer and it doesn't cause their computer to have five hours of battery life (even though Chrome is a known battery hog) so it must be Apple's fault. Blame the $900 phone. For battery reasons alone I completely understand Apple's decision. There are plenty of other issues, such as keeping things updated with the latest iOS API is that are needed by the default browser, although some of that could be worked around with large third parties like Google. I know they were missing features the people are absolutely clamoring for here on HN, but every time I asked they never seem to be something that I care about. I don't really care about web RTC, I don't remember the last time I wanted to have a webpage record audio, the fact that local storage doesn't persist across private browsing tabs is a FEATURE to me. I think this fits well with the other article that's currently on the front page. Lots of people here in another text sites trounced Apple for their computer updates this year, but normal users seem to be very happy with them. A lot of these positions seem to just be too far out of Main Street (and there are so many iPhone sold that mainstream is GIGANTIC).