Hacker News new | ask | show | jobs
by redbergy 4276 days ago
While the title isn't necessarily false, it's misleading link bait because people click on it thinking that Apple is now allowing us to push out Swift/Objective-C updates in-app. It's more feasible than ever that this could happen now since they've added the ability to include frameworks inside of your apps where previously you couldn't.

The link is referring to using HTML/JS/CSS to update apps, which has been possible since the UIWebView in 2.0 - literally for years and years. You download those files and view them in a web view – technically it's running javascript "hot code" but this isn't news, it's been around since we could develop apps for iOS. A better title might be "Apple allows you to download and view HTML in a web browser inside of your app" but that wouldn't generate many clicks.

2 comments

Yeah, I found the title misleading, too.

What is news to me is the explicit mention of WebViews. I remember this exception previously being for JavaScript in general, which I assume would include JavaScriptCore.

Does anyone know if they changed this before or after JavaScriptCore was introduced?

Ok, we changed the title to something close to that but with more language from the article itself.

If that's not good enough we can edit it again.

I would make it say 'Apple allows hot code push for JS downloaded and run by WebKit'
Ok, let's try that.