News for hackers. Stuff that matters.
Re:Apple starts rejecting apps with “hot code push” features by jameside on Wednesday March 08, 2017 @02:07AM (#13818537)
The key part of JSPatch is that it exposes arbitrary, uncontrolled access to native APIs. You could use it to call private APIs even because Objective-C doesn't distinguish between public and private APIs at runtime, so Xcode's compiler checks and Apple's static analysis can't anticipate which APIs are possibly called.

In contrast, React Native doesn't expose uncontrolled access to native APIs. You write regular Objective-C methods that are callable from JavaScript, and within your Objective-C methods you write regular Objective-C that is statically checked by Xcode and Apple.

Re:Apple starts rejecting apps with “hot code push” features by teknologist on Wednesday March 08, 2017 @02:55AM (#13818717)
I'm not sure why people are concerned about React Native being targeted by this new enforcement of the rule. It is not the same thing at all.
Re:Apple starts rejecting apps with “hot code push” features by je42 on Wednesday March 08, 2017 @05:53AM (#13819430)
it shares some components. like javascriptcore.

difference is the js - native bridge. for react native it is fixed bridge, that can only change with a change in the binary.

for rollout they can execute any native code with an update of the JS.

Re:Apple starts rejecting apps with “hot code push” features by batmansmk on Wednesday March 08, 2017 @12:23PM (#13821709)
The main reason for React Native to not be impacted is that Facebook + Instagram + Airbnb + Soundcloud + ... are using it and Apple cannot justify to their userbase to not accept those favorite apps for a technical reason.
Re:Apple starts rejecting apps with “hot code push” features by matthewmacleod on Wednesday March 08, 2017 @02:20PM (#13822826)
No, it's not. It's because React Native is a totally different technical solution.
Re:Apple starts rejecting apps with “hot code push” features by prabodhprakash on Wednesday March 08, 2017 @05:44AM (#13819389)
"You write regular Objective-C methods that are callable from JavaScript," - the objC function that I am calling from JS can be capable of calling a private API received by it in an argument - that breaks the entire claim of reactNative not supporting calls to private API. React Native must also go down.
Re:Apple starts rejecting apps with “hot code push” features by jameside on Wednesday March 08, 2017 @12:25PM (#13821720)
If you deliberately write code that calls private APIs that are exposed to JS in your React Native app, I expect only your specific app to receive this warning. The same would be true in an app that doesn't use React Native at all, as we've seen with apps using Rollout.

The warning is not about React Native, it's about exposing uncontrolled access to native APIs including private ones and React Native doesn't do that.

Re:Apple starts rejecting apps with “hot code push” features by wruza on Wednesday March 08, 2017 @07:21AM (#13819736)
See the difference between a regular human who in theory can take a knife and violently rob or kill someone, and human-like robot that can be easily programmed to do the same. Who has to be isolated?

It is all about intents. If app allows that, it is banned for that behavior, not for having React in his kitchen. But if you have armed drone there, then police has a question.