News for hackers. Stuff that matters.
Re:Show HN: Make an app by adding JSON to this app by leereeves on Saturday November 05, 2016 @12:45PM (#12880532)
How is Apple going to react when you change the JSON (and thus the app, as seen by the user) without getting approval for the changes?
Re:Show HN: Make an app by adding JSON to this app by beyti on Saturday November 05, 2016 @01:46PM (#12880851)
If you are showing a web page inside your app and the web page contents changed, is that a problem too? I mean where's the line defined by apple for the term "change".
Re:Show HN: Make an app by adding JSON to this app by leereeves on Saturday November 05, 2016 @05:09PM (#12881906)
Apple only allows the iOS WebKit framework, so in a way, all apps that show webpages are simply wrappers around an Apple browser.

So I wouldn't be surprised if they react to that differently.

Re:Show HN: Make an app by adding JSON to this app by Animats on Saturday November 05, 2016 @06:15PM (#12882212)
Will Apple eject this app from their web store for downloading code? Maybe not. Current Apple policy:

2.5.2 Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code, including other iOS, watchOS, Mac OS X, or tvOS apps.

Older policy:

3.3.2 — An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple’s Documented APIs and built-in interpreter(s).

Apple once prohibited a Commodore 64 emulator because it had a BASIC intepreter. But they've lightened up a bit.

Re:Show HN: Make an app by adding JSON to this app by bennyg on Saturday November 05, 2016 @10:29PM (#12883127)
https://microsoft.github.io/code-push/

It's definitely allowed for JS.

Re:Show HN: Make an app by adding JSON to this app by leereeves on Sunday November 06, 2016 @12:13PM (#12886027)
> nor may they download, install, or execute code

This looks like code to me, even if it is wrapped in JSON:

> {{#each posts}}

> {{# if ('type' in this) && (type=='stories') }}