by joshstrange · 3y ago · 0 comments
> Since these are “apps within an app”, many of these mini-programs are flouting the App Store rules since they were not downloaded from the App Store.
I mean Drafts has the ability to download actions (not sure if that is the right term) which are JS that run inside the app. I think this is fine and doesn't skirt any rules, I don't see why WeChat is all that different.
All that said, of course Apple is going to make exceptions for WeChat the same way it makes various concessions to other countries.
Implementation is very much part of the rules. Apps cannot download and execute external code… unless it’s JavaScript in a browser.
Nothing in the article suggests that WeChat apps are not plain websites, so it seems that they don’t know the rules nor the alleged rule breaker’s technical side.
I wouldn’t exclude that WeChat really does get a pass from Apple, but the article does not clarify this important point.
We were told to we could fetch news story data from an api, and get back json/xml/etc, but not JS and CSS files.
I totally believe they rejected your app though, App Store review is pretty bad. I mean at least they are _way_ faster now but it's reviewer roulette for sure. I've been dinged for things that aren't even in the App Store dev agreement, they were in some other document. Even worse the reviewer told me I needed to change my wording when requesting a permission, the problem? She wanted me to change text I don't control in the permissions dialog. I explained that I only had control over the single string in quotes but she told me I was wrong (I got through on the next review). The inconsistency in the review process is maddening and so much of it is reading the tea leaves of what they actually want and what is allowed. I mean, we all know it's against the rules to send advertising/marketing push notifications right? Right? That _never_ happens in the App Store... Make whatever rules you want but dear god please enforce them consistently and change/remove a rule if you've decided to not enforce it.
But yeah it also probably was partly due to reviewer roulette. I've experienced the same on other apps, things that have been in the app for a year can suddenly get it rejected without a corresponding rules change from Apple. Just different interpretations of our code by a new reviewer.
In this case we decided to just remove that feature and re-publish.
Been there. The best is when I have an app that has actually been released on multiple other accounts (white label app) and then a reviewer wants to say it's all wrong and reject it. I the worst thing that's happened to me is when they dinged me for a soft permission prompt (asking the user before throwing the one-time-only system dialog), I removed it since I needed to get the update out (it wasn't related to this at all of course), then they started nit-picking and not only were they wrong in a lot of the cases but they were making me do like 1-2 word changes to permission prompts to make them more specific. I had no clue how many new things they'd come up with for each submission, we went back and forth a few times before it finally got through, I just bumped the build number and resubmitted.
though it's not really clear to me what it means to change your app's functionality in a way that would not be appropriate for an App Store product
What I understand is that a mini program needs to be "packaged" and shipped to WeChat as a bundle. The size of the bundle is relatively small. (~10mb ?)
Of course you can load some content from outside, not everything is within those 10mb, but I think it's still relatively limited. Calling it apps within apps is a stretch.
In the end, it was down to whether it _looked like_ your app was downloading executable code more than whether it actually did. Reviewers are non-technical, and when the policy is technical they often make an inference that may be incorrect — however they will not budge on that without consulting actual engineers further up the chain, which can take weeks
They have become a lot more relaxed about this policy in the last five years or so (ever since Shortcuts)
> WeChat is more akin to a web browser than having multiple "apps" inside it
>> Apple bans alternative web browsers too... so..
If they use a different browser engine they are currently banned but you can wrap Safari/webkit like every browser app on iOS does and provide different chrome/features. WeChat isn't embedding a different rendering engine, just using webkit.
I'm not familiar with that particular app but if that happens it's not fine and it seems to get a pass from Apple. The apps are not allowed to download executable code. You have to bundle it all in the app.
There is a special entitlement to allow some Apple apps and frameworks to do this — Apple’s JavaScriptCore can do JIT, which requires executing data pages. Similarly, Swift Playgrounds can compile to native code and execute that code
So, for example, you could ship a C compiler on iOS and it would compile perfectly valid binaries, but you would never be able to execute those binaries natively without code-signing them and deploying them in an Apple sanctioned way, which you cannot do on-device (except with the above mentioned exceptions)
Only for Safari or if you use a WKWebView, otherwise if you use JavascriptCore yourself on iOS, JIT is disabled and quite slow. On macOS it’s enabled.