TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Apple allows hot code push for JS downloaded and run by WebKit

139 pointsby yalicemeover 10 years ago

14 comments

dozyover 10 years ago
I once worked for Pyxis Mobile (now Verivo Inc.) which touted a platform which would provide you with native iOS, Android, and BlackBerry (years ago..) apps, which would <i>build themselves</i> at run time based on a database&#x2F;app meta data. This allowed apps to completely change themselves without a resubmission, while being in-line with Apple&#x27;s guidelines, and technically be purely native. Between lazy loading and the fact that the interfaces were simple, the system worked well. Point being - I&#x27;ve thought a lot about and seen the result of the &quot;avoid app store submission&quot; value proposition.<p>After all these years, I find the aforementioned value proposition...not that valuable. In my experience it&#x27;s fine to only be able to push iOS updates on something like a once&#x2F;week cadence. Of course on Android, you can push daily if you really want to.<p>Ultimately, my thought is that with all of the complications and hard work required to create and maintain a mobile app, this is a tiny piece, and should play little into your decision when choosing to develope natively vs. w&#x2F; Meteor&#x2F;phonegap vs. something else. Of course, the geek in me and the Android fanboy in me loves skirting Apple&#x27;s &quot;guidelines&quot;. :)
评论 #8404284 未加载
Ryguover 10 years ago
This doesn&#x27;t come as news to me. Every website can be shown via WK&#x2F;UIWebViews as a &quot;mobile app&quot;. Each javascript therefore is &quot;hot code&quot; being pushed. But I don&#x27;t think Apple ever disallowed that, on the contrary it was the only way to develop for iPhone 1.
评论 #8402954 未加载
rubyn00bieover 10 years ago
In other words: webpages function as expected on iOS.<p>... Not to blame the meteor folks for writing it, if they were getting asked it... But wow.<p>I personally think the title is a bit click-baity, but that&#x27;s because it&#x27;s not really hot code push. It&#x27;s loading a web view. If this was hot loading new native code that&#x27;d be newsworthy or at least interesting.
评论 #8403805 未加载
评论 #8403775 未加载
brianchuover 10 years ago
This sounds great. It bears noting that this form of code push is routinely implemented in native apps too - I know at least that the Quora and Facebook iOS apps make liberal use of web views (and code push). Native apps can take the opposite hybrid approach - sprinkle in web views where needed inside a native codebase, as opposed to sprinkling in native plugins (and a native wrapper) in a web codebase.
评论 #8403306 未加载
评论 #8403763 未加载
turvalover 10 years ago
This is probably the only feature that gives hybrid apps an actual upper-hand vs their native counterparts.<p>So now I could instantly push an update to my apps by hot-swapping the js code, while a native version would be stuck in a a multi-day approval process.<p>I can imaging there are some scenarios where getting a feature to market before a competitor would make this feature really valuable.<p>One question, it specifically mentions using the WebKit framework, does that mean that this is not allowed under the old UIWebView class?
评论 #8402704 未加载
评论 #8402489 未加载
评论 #8403004 未加载
评论 #8402699 未加载
评论 #8402389 未加载
donparkover 10 years ago
Unless I&#x27;m mistaken, two primary restrictions are:<p>1. script must be downloaded only within UIWebView. 2. script must be excuted only within UIWebView.<p>Not sure why #1 is important to Apple but #2 makes perfect sense. I&#x27;m assuming Meteor is downloading scripts then passing them as &#x27;data&#x27; to native-side to be cached somewhere until it needs to be injected back into UIWebView for execution.
评论 #8404833 未加载
评论 #8405217 未加载
colinbartlettover 10 years ago
I&#x27;ve been using Trigger.io like this for years, it&#x27;s very useful.<p>But don&#x27;t forget that the app download from the AppStore will have old code which may or may not be a problem when you first open the app.
snfernandezover 10 years ago
Don&#x27;t see the point a blog requiring javascript enabled to load.
评论 #8403676 未加载
评论 #8403180 未加载
seanalltogetherover 10 years ago
Last I read, Apple was limiting javascript performance in UIWebViews compared to what was available in Safari, is this still the case?
评论 #8402596 未加载
suyashover 10 years ago
Nothing new here, anyone who has written a hybrid app or a mobile web application knew about this day1. One of the advantages over native application development. It has nothing to do with meteor or anything like that.
markiveover 10 years ago
Does this count for technologies like Appcelerator?<p>Or can I work around the standard way Appcelerator works for example by making more Javascript code available through a webkit Ti.UI.Webview or something?
_random_over 10 years ago
Many games are constantly downloading multi-megabyte &quot;updates&quot;. I bet some of that stuff is Lua.
评论 #8402790 未加载
TheLoneWolflingover 10 years ago
Yet another site that does not load without JS.
bribriover 10 years ago
Ultimate linkbait title for HN
评论 #8402844 未加载
评论 #8403212 未加载