Skip to content

loadURL() fails on AppStore distribution package #4599

@bryan-jowers

Description

@bryan-jowers
  • Electron version: 0.35.6 and tried 0.35.6 too
  • Operating system: 10.11.2

I have built an Electron application that calls loadURL() in main.js. From there, it's a remote website. Locally, it works great. I signed it with my developer cert and .app works great. However, when I productbuild the app to a package for Mac AppStore distribution I hit a problem.

I did significant searching before posting this - creating an issue is my last resort. The only thing I could find or think of is sandbox capability, but I failed to get it to work by enabling network.

I can successfully install the package:
sudo installer -store -pkg App.pkg -target /

I can open the app, but I get a new error.
screen shot 2016-02-24 at 3 40 12 pm

It won't resolve any URL with error:

Failed to load resource: net::ERR_NAME_NOT_RESOLVED http://github.com/

So as a local app, everything works. After signing the .app, it still works. But building into a distribution package, I get the error on loadURL()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions