1 Reply
      Latest reply on Oct 22, 2019 2:23 AM by eskimo
      antoniorb Level 1 Level 1 (0 points)

        I have a macOS application which I distribute in an installer .pkg. Both app and installer are notarized. The application is set to use a custom URL.

        Now, with the upgrade to Catalina, when the application is installed through the installer, it cannot open custom URL, an alert is shown with 'There is no application set to open the URL ://'.

        The strange fact is, if I run the application outside the installer, so simply drag and drop to the application folder, it works without any issue and open the custom URL.

        Any idea of what is going on?

        • Re: Custom url with notarized package installer
          eskimo Apple Staff Apple Staff (12,285 points)

          I suspect that notarisation is a red herring here, and that the real issue relates to the installer.  If you run lsregister on the newly installed app, does the custom URL scheme start working?

          $ lsregister -f /Applications/Your.app

          Note You can find lsregister at /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister.

          Also, make sure you test this on a fresh machine.  I generally do this sort of thing in a fresh VM, restoring to a snapshot between each test so that I get consistent results.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"