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.

AppHub – Update React Native Apps Without Re-Submitting to Apple

154 pointsby arbesfeldalmost 10 years ago

15 comments

benthehentenalmost 10 years ago
AppHub co-founder here, we realize that this is something that would seem to be prohibited by Apple, but updating JavaScript code is explicitly permitted by the iOS Developer Agreement [1]. This same technology is used by Meteor [2], Trigger.io [3], and Adobe Hydration [4], and also used by Facebook and Palantir [5] in their apps.<p>[1] <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;programs&#x2F;ios&#x2F;information&#x2F;iOS_Program_Information_4_3_15.pdf" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;programs&#x2F;ios&#x2F;information&#x2F;iOS_Pro...</a><p>[2] <a href="http:&#x2F;&#x2F;info.meteor.com&#x2F;blog&#x2F;apple-hot-code-push-mobile" rel="nofollow">http:&#x2F;&#x2F;info.meteor.com&#x2F;blog&#x2F;apple-hot-code-push-mobile</a><p>[3] <a href="https:&#x2F;&#x2F;trigger.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;trigger.io&#x2F;</a><p>[4] <a href="http:&#x2F;&#x2F;docs.build.phonegap.com&#x2F;en_US&#x2F;tools_hydration.md.html" rel="nofollow">http:&#x2F;&#x2F;docs.build.phonegap.com&#x2F;en_US&#x2F;tools_hydration.md.html</a><p>[5] <a href="https:&#x2F;&#x2F;medium.com&#x2F;@clayallsopp&#x2F;a-dynamic-crazy-native-mobile-future-powered-by-javascript-70f2d56b1987" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@clayallsopp&#x2F;a-dynamic-crazy-native-mobil...</a>
评论 #10048751 未加载
评论 #10048609 未加载
评论 #10049885 未加载
评论 #10048488 未加载
aaronbrethorstalmost 10 years ago
I wish you folks well, and I think this looks neat, but—as others have pointed out—although you follow the letter of the iOS Developer Agreement, I expect Apple will feel you do not follow the spirit of it. They may change the agreement outright, or simply say that use of AppHub falls under the purview of 3.3.2. But, either way, I recommend you have a contingency plan.<p>This whole spirit&#x2F;letter thing comes up on occasion. Here&#x27;s a previous example: <a href="http:&#x2F;&#x2F;daringfireball.net&#x2F;2012&#x2F;05&#x2F;more_on_airfoil_speakers_touch" rel="nofollow">http:&#x2F;&#x2F;daringfireball.net&#x2F;2012&#x2F;05&#x2F;more_on_airfoil_speakers_t...</a>
AlwaysBCodingalmost 10 years ago
This is awesome (and was seemingly inevitable now that React Native is in play), and it will be really interesting to see what Apple eventually does about this.<p>If they change the terms of service to prevent hot loading app updates via JavaScriptCore they&#x27;re going to isolate a lot of developers, since so much cool stuff is being developed around JavaScriptCore right now. The rnplay playground app that&#x27;s currently in the App Store dynamically loads entire apps onto your phone to play around with -- it&#x27;s so cool, why block things like that from existing?<p>If they do nothing, it&#x27;s clear a rogue app store distribution ecosystem is going to evolve (case in point ^) which seems like a sub-optimal outcome for everyone.<p>Isn&#x27;t the only eventuality for Apple to change their app store approval process to allow dynamic updates? I mean it&#x27;s obviously better for developers, and probably ultimately better for end users as well. I just don&#x27;t see any way around it with the momentum writing iOS apps in Javascript has right now.
edkoalmost 10 years ago
The PhoneGap app (and probably many others) has been pushing JS code without the need of Apple&#x27;s approval for a long time now, and Apple hasn&#x27;t had any problem with it. If this is not abused, to do things against the ToS, it is a really nice thing to have.
评论 #10051139 未加载
ealexhudsonalmost 10 years ago
I see that lasting almost three weeks before Apple shut it down (assuming anyone uses it...)
评论 #10048265 未加载
评论 #10048271 未加载
edgeman27almost 10 years ago
Updated iOS Developer Agreement in 3..2..1..
mikewhyalmost 10 years ago
We released an app onto the store last year that was a UniWebView pointed to an S3 website, constantly updated the code without pushing through the app store. No qualms from Apple.<p>This sounds great!
potomushtoalmost 10 years ago
&gt; Celebrate! This is the last time you&#x27;ll have to wait for Apple review.<p>This is the great idea! And it works for many. It&#x27;s easy, though, to get an inconsistent state of the app, where JS bundle would be newer than ObjC part. You should be super careful while npm-installing libs, including react-native itself since most of them consist source code that should be compiled. Maybe it wouldn&#x27;t be a problem when react-native and most major third-party libraries will be stable
评论 #10052033 未加载
natchalmost 10 years ago
Technically, this looks like a cool hack.<p>I&#x27;ve never found submitting an app for app review to be that big of a deal, if your app is well designed, useful, and not negligent or malicious toward user needs.<p>Your FAQ says what you&#x27;re doing is explicitly permitted by Apple, and points to section 3.3.2 of the iOS Developer Program Information document.<p>But what about section 3.3.3?<p><pre><code> 3.3.3 Without Apple’s prior written approval or as permitted under Section 3.3.25 (In App Purchase API), an Application may not provide, unlock or enable additional features or functionality through distribution mechanisms other than the App Store or VPP&#x2F;B2B Program Site </code></pre> Finally, you do realize that the App store policies are subject to change in order to adapt to hacks like this, right?<p>Again cool hack but it will be interesting to see if it gets out of the starting gate.
评论 #10048645 未加载
评论 #10048603 未加载
volaskialmost 10 years ago
The problem with this is not if Apple will allow it or not, but the uncertainty, which is deadly for a platform. No developer who take themselves seriously will want to depend on a platform that may go away. Good for you if Apple lets you get away with it, but that doesn&#x27;t mean it will be like that forever, nor does it mean all apps using this approach will be accepted. It&#x27;s case by case, and it&#x27;s already shitty as is when it comes to approval process, most developers would just decide to follow the directions.
评论 #10051819 未加载
ericjangalmost 10 years ago
This is pretty neat! However, Apple can bypass this by simply rejecting apps that bundle the AppHub framework, with the claim that apps whose feature updates bypasses app store approval present a security vulnerability.<p>A more useful approach would be to open-source the AppHub framework so users can implement auto-updating themselves, and it would be harder for Apple to catch this.
BradRudermanalmost 10 years ago
From a business perspective, how many apps use react? I am interested in what is the size of the market for this business?
kzhaouvaalmost 10 years ago
Really cool hack! Would hate to see Apple ban this...
s73v3ralmost 10 years ago
And this is why we can&#x27;t have nice things. Someone is going to submit a React Native app to the App Store, use this bullshit to bypass the update review, and either use it to steal information of a user, or post dick pics all over the app.
评论 #10049442 未加载
评论 #10050956 未加载
Upwad0nalmost 10 years ago
Whoa, this is sick!