Skip to content

Relaunching application on SPUUpdater checkForUpdatesInBackground #2458

Answered by zorgiepoo
mithril52 asked this question in Q&A
Discussion options

You must be logged in to vote

updaterShouldRelaunchApplication:

As the API docs state, used for preventing the user from relaunching, so not applicable to you.

updater:willInstallUpdateOnQuit:immediateInstallationInvocation

Deprecated/old API. Replaced by -updater:willInstallUpdateOnQuit:immediateInstallationBlock: which is what you want.

updater:shouldPostponeRelaunchForUpdate:untilInvokingBlock

For postponing the user relaunching the app, not what you want.

SUUpdater does appear to work when using checkForUpdatesInBackground, but when it tries to relaunch the application, an unhandled exception is thrown.

Not familiar with the exception. Please paste it.

Yes you want SUAutomaticallyUpdate and maybe SUEnableA…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mithril52
Comment options

Answer selected by mithril52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants