Search code examples
macoscocoamac-app-store

MacOS Application Reopens After the User Quits


I have an app on the Mac App Store and over the last few weeks some people have complained that when they quit the app, it will reopen again.

Since the app is sandboxed, it should be technically impossible for my app to reopen itself (even if I want it to) after the user choose to quit it. So, I have no clue what went wrong and I can't reproduce this issue.

Any ideas?


Solution

  • We figured out what went wrong and how to fix it.

    First off, since the app is sandboxed it's technically impossible that we caused this with our code. However, according to a user, there was a plist file (named after our app) in the LauchAgents directory that caused the restarting of our app. After deleting that file, everything was fine again. As to why this entry existed in the first place and how it got there: ¯\ _(ツ)_/¯

    Hope this helps anyone who has the same problem.