Live data from Hacker News

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

apphub.io

51–60 of 69 posts

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

#51
post #26

And this is why we can'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.

Well, the basic functionality is already trivial to implement yourself: you just point React Native at your https URL and use HTML5 Application Cache. We're doing it just because it's the easiest way to develop with React Native.

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

#52
post #37

The PhoneGap app (and probably many others) has been pushing JS code without the need of Apple's approval for a long time now, and Apple hasn'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.

Indeed, we've been advocating this approach since Aug 2, 2008. But to be more specific, when PhoneGap was first developed it would load the HTML/CSS/JavaScript from a server just like a chrome-less browser with the url hard coded. Unfortunately Apple started to reject apps that used PhoneGap because they felt it violated this rule which forced us to change how it works to have the web assets already packaged in the application.

We later found out that Apple thought PhoneGap was our own custom version of webkit which is what actually concerned them more. Once they came to learn more about the implementation detail on how PhoneGap works it started to become accepted but this was a very long process.

To clarify, 1) Apple hasn't always approved apps packaged with PhoneGap. 2) PhoneGap hasn't always taken this approach (although this was the initial design).

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

#54

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. [1] https://developer.apple.com/programs/ios/information/iOS_Pro... [2] http://info.met…

Apple aside, doing this kind of thing silently sucks for users -- one of the benefits of native applications over the web is having control over when updates containing potential regressions are inserted into your workflow.

Couldn't this also aide in correcting regressions at the same time?

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

#55
post #28

Earlier quoted context omitted.

This: "Stop waiting weeks for Apple to review your app. Just add our iOS framework and start pushing updates." says otherwise.

The key verbiage is "release" vs "updates." You still have to go through the initial App Store Release process initially. After that, using this framework you can push updates directly, rather than waiting the requisite 5 business days[1]. As an app developer, being able to push updates (read: bug fixes) immediately is a blessing--we live and die by our reviews, and a bad update can cause an avalanche of negative rev…

You can still fast track an update if you ask nicely. I think you get a limited number of fast tracks.

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

#56
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't mean it will be like that forever, nor does it mean all apps using this approach will be accepted. It's case by case, and it's already shitty as is when it comes to approval process, most developers would just decide to follow the directions.

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

#57
post #56

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't mean it will be like that forever, nor does it mean all apps using this approach will be accepted. It's case by case, and it's already shitty as i…

AppHub cofounder here -- I'm glad you brought this up.

A developer who chooses to use AppHub is not depending on the platform. If AppHub goes away (which we hope will never happen!), our iOS SDK defaults to using the App Store build. Moreover, developers can implement their own "AppHub server" if they so choose, so they're not locked in to using our service.

We're excited to open source the iOS SDK when we launch to the public so that developers can audit the code and assure themselves that they're not depending on our platform.

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

#58
post #25

Earlier quoted context omitted.

Yep, "feature flipping" can lead to app rejections and getting booted from the store. * If the AppHub founders think this is a real danger, then you'd expect bold and strenuous documentation. * But, I wonder if the AppHub authors believe that people should ignore this rule, because practically speaking it's hard to get caught. They wouldn't say so, of course, because encouraging people to break Apple ToS is illegal.

Is it illegal? I would expect it to maybe break the ToS or something contract related, not be criminal.

With the way the CFAA is enforced, you look at a computer in a way someone with money doesn't want you to and it's federal prison worthy. I'm sure an over eager DA could and would try and make the case.

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

#59
> Celebrate! This is the last time you'll have to wait for Apple review.

This is the great idea! And it works for many. It'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't be a problem when react-native and most major third-party libraries will be stable

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

#60

> Celebrate! This is the last time you'll have to wait for Apple review. This is the great idea! And it works for many. It'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't be a problem when react-na…

Yep, so true! Our dashboard makes it super clear to deploy JS bundles that are versioned to specific App Store releases, and we provide an API for testing new JS bundles on old App Store releases.

I'd love to have you try it out - ping me at (matt at apphub.io).

Post reply on HN