Show HN: ReactNativeAutoUpdater – support dynamic updates for React Native apps
github.com
github.com
With CodePush, AppHub, and this, it would be nice to have the community converge on a shared auto-updating client. Perhaps down the road we could see this functionality integrated into React Native itself.
[1] https://github.com/AppHubPlatform/apphub-ios
[2] http://docs.apphub.io/docs/self-hosting
Disclosure: I created AppHub
> Does Apple permit this?
> Yes! Section 3.3.2 of the iOS Developer Program allows it "provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application."
I really, really hope this doesn't go away.
Apple is allowing this because JS is sandboxed, so I guess it's here to stay.
Having said that Apple seems slightly more chilled now Cook's in charge.
Also, this is react native, so it is only sandboxed in the way any other app is. The JS->ObjC bridge can do pretty much anything a native app can do so I don't think the JS thing makes much difference.
I think really it's in there so people can update webviews of content without having to resubmit the whole app. I don't think this is the spirit of that rule. Would be pleasantly surprised if not though.
2 questions:
1. If you don't ask the user to update immediately after it is downloaded, when will the update apply? The next time the app is opened?
2. Is it possible to handle events around the update process from from Javascript? (For example an `onBeforeUpdate` or `onAfterUpdate` event.)
> Does Apple permit this?
> Yes! Section 3.3.2 of the iOS Developer Program allows it "provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application."https://github.com/Microsoft/react-native-code-push/blob/mas...