Replies: 1 comment 2 replies
-
In the software update prompt for when a new update is available there is a checkbox to allow users to opt in/out of automatically downloading updates. In Sparkle 2.4 or later, it also shows up as an option in the second-launch prompt that asks users permission to check for updates automatically.
automaticallyDownloadsUpdates can be used to set it dynamically. Note the documentation states: Only set this property if the user wants to change the default via a user settings option. So the use case of setting it dynamically is if you add a setting in your app that allows users to change the option.
No it's not recommended. |
Beta Was this translation helpful? Give feedback.
-
The documentation for "SUAutomaticallyUpdate" says "Note this setting controls the default and users have the option to change this behavior." How do users change this behavior?
Also, I would like to change the value of "SUAutomaticallyUpdate" dynamically at run time, not just via the plist file, is this possibl? And if so, which API do I use? I was not able to find a API that sets this directly (I only found "automaticallyChecksForUpdates" which is a bit different).
I saw an old thread (2017) that said it can be done via the below line of code, but not sure if this still works or is recommended:
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"SUAutomaticallyUpdate"]
Beta Was this translation helpful? Give feedback.
All reactions