News for hackers. Stuff that matters.
Re:Electron apps cannot be submitted to the Apple store by freehunter on Sunday November 03, 2019 @07:06PM (#21437715)
Because Electron developers might say "we fixed it" and the app developer might resubmit based on that and now they're banned due to a mistake made by an upstream dependency.

It's not like this app developer is intentionally using private APIs. "Resubmitting the same thing and hoping that it doesn't get caught" seems to be a strawman.

Re:Electron apps cannot be submitted to the Apple store by floatingatoll on Sunday November 03, 2019 @07:21PM (#21437805)
That resubmit approach ways used by at least one camera app years ago who masked their private API usage to secretly include a volume button “take photo” feature. They were told to knock it off (and Apple also added that option to the API at a later date).

Between that and the folks who hid MAME in an app or whatever, I think Apple is not simply constructing straw men when they warn that attempts to circumvent the spirit of their request - and the letter of it - will result in a lifetime ban.

Re:Electron apps cannot be submitted to the Apple store by kalleboo on Monday November 04, 2019 @07:32AM (#21441002)
Camera+ didn't use a hidden API - they just used a standard system volume control but placed it offscreen and monitored if the volume changed (and then lower it imperceptibly if you hit 100%). And Apple has still not added an API to do this officially, last I checked all third party camera apps use a similar hack.

What changed was just the interpretation of the app store rules - the rules said something like "you're not allowed to use hardware buttons in a non-standard way". Once they added the volume shutter feature to the system camera, now it's not a non-standard way and it's not against the rules.

Re:Electron apps cannot be submitted to the Apple store by saagarjha on Sunday November 03, 2019 @07:14PM (#21437773)
Hence why you should audit your third-party dependencies in cases like these.
Re:Electron apps cannot be submitted to the Apple store by jonny_eh on Sunday November 03, 2019 @11:35PM (#21439074)
How exactly?
Re:Electron apps cannot be submitted to the Apple store by saagarjha on Monday November 04, 2019 @12:29AM (#21439258)
I would assume that a quick grep through your project for the symbols mentioned would tell you where the issue is.
Re:Electron apps cannot be submitted to the Apple store by rdevnull on Monday November 04, 2019 @04:56AM (#21440199)
it would but it wouldn't solve the problem. This would require the developer to modify electron and basically run his own branch. It would then make your package possibly acceptable (but attention here: as Apple clearly stated keeping too use private APIs can get you banned so if you miss something you can lose your access to the apple store) leaving however everyone else using electron with the same problem. So the solution has to come from Electron.
Re:Electron apps cannot be submitted to the Apple store by JohnFen on Monday November 04, 2019 @12:41PM (#21444087)
> So the solution has to come from Electron.

And until it does, developers should not use Electron.

There's a number of reasons why I refuse to use Electon-based apps, and this is one of them.

Re:Electron apps cannot be submitted to the Apple store by drewbug on Monday November 04, 2019 @12:54AM (#21439335)
what if the function calls are generated with macros or something?
Re:Electron apps cannot be submitted to the Apple store by justinclift on Monday November 04, 2019 @02:55AM (#21439688)
Isn't it literally the responsibility of the developer to figure it out, instead of just ignoring it because it's potentially hard?
Re:Electron apps cannot be submitted to the Apple store by saagarjha on Monday November 04, 2019 @01:49AM (#21439475)
grep the generated binary.
Re:Electron apps cannot be submitted to the Apple store by winkeltripel on Sunday November 03, 2019 @10:12PM (#21438713)
I suspect that most devs don't do that. I can't imagine finding the time fir that.
Re:Electron apps cannot be submitted to the Apple store by josephg on Monday November 04, 2019 @03:11AM (#21439775)
Who do you imagine is responsible for making sure your app doesn’t contain malware?

The only answer is that as a developer, you are responsible. Yes, we have to make calculated risks. But the buck stops at you. There is nobody else who can take responsibility for the contents of your app.

Re:Electron apps cannot be submitted to the Apple store by rdevnull on Monday November 04, 2019 @07:50PM (#21448508)
you simply notarized the app and you know that there is no malware. Also we are talking about ElectronJS and Chromium -- not exactly untreatable sources. Note that apple does check for malware and quality on the upload stage itself (now done via transporter) so it wouldn't even make it to then review state if something is dodgy.
Re:Electron apps cannot be submitted to the Apple store by josephg on Tuesday November 05, 2019 @03:33PM (#21456367)
Apple can’t magically tell that there’s no malware in an app you upload. There is no automated scan which can detect all security vulnerabilities or back doors in code. And we’re talking about electron plus hundreds to thousands of npm modules - which contain who knows what.

If you pull in some bad modules, directly or transitively, and as a result your app steals my data or worse, that’s on you for shipping malicious code to my computer. There is no one else who can be responsible for that. Not Apple. Not the user. You.

Re:Electron apps cannot be submitted to the Apple store by JohnFen on Monday November 04, 2019 @01:18PM (#21444565)
I've done that over my entire career. It's always been a requirement. To say you can't find time for it is the same as saying that you can't find time to complete development.
[dead]
Re:Electron apps cannot be submitted to the Apple store by saagarjha on Sunday November 03, 2019 @07:53PM (#21437999)
Please don't attack people like this. I'm fairly sure they're here reading the comments, and even if they weren't, you don't need to call them things.
Re:Electron apps cannot be submitted to the Apple store by LeoNatan25 on Sunday November 03, 2019 @11:00PM (#21438919)
Sometimes saying the truth is unpleasant. But the fact is, these developers have no idea what they are using, or what runs on the users' machines. They bring a ton of dependencies and have no idea what those involve. If that is not incompetency, what is?