Skip to content
TheRealKerni edited this page Apr 1, 2011 · 5 revisions

BWHockeyManager Properties

Property Type / Default Value
updateURL NSString / nil required URL pointing to your server setup, e.g. http://beta.myserver.com/
delegate id / nil optional the delegate instance responding to BWHockeyManagerDelegate protocol
sendUserData BOOL / YES optional Send the current user data: device type, iOS version, app version, UDID. Required to be YES for *team management
sendUsageTime BOOL / YES optional Send the the users usage time of the app to the service, only in 15 minute granularity!
allowUserToDisableSendData BOOL / YES optional Allows the user to overwrite the developers settings of sendUserData and sendUsageTime. showUserSettings has to be set to YES to allow the user to change the settings which the developer activated. If the develop does not activate sendUsageTime e.g., the user also cannot change it.
alwaysShowUpdateReminder BOOL / NO optional Display the new version alert only once (NO) or always if the current version is outdated (YES)
checkForUpdateOnLaunch BOOL / YES optional Check for updates will be performed after the application becomes active. If set to NO you have to take care your to invoke the checks yourself in your code by calling - (void)checkForUpdate;
showDirectInstallOption BOOL / NO optional Shows an install button in the alert view notifying about pending updates. This way the user can install the update without checking the update screen first.
requireAuthorization BOOL / NO optional Each new version requires an authorization against the server, if that is denied, the version will always be block the screen. The authenticationSecret has to be also set and be identical to the server side setting!
authenticationSecret NSString / nil optional Defines the secret string which is also used to generate the authorization token string. It is mandatory if requireAuthorization is set to YES. And the value has to be identical to the server side secret token.
compareVersionType HockeyComparisonResult / HockeyComparisonResultDifferent optional (HockeyComparisonResultDifferent, HockeyComparisonResultGreater) Alert about a new version if the version string is different or if the evaluated version number is greater than the currently installed version number
updateSetting HockeyUpdateSetting / HockeyUpdateCheckStartup optional (HockeyUpdateCheckStartup, HockeyUpdateCheckDaily, HockeyUpdateCheckManually) Defines how often Hockey should check for updates, if set to HockeyUpdateCheckManually, make sure to allow the user to navigate to the hockey update screen from within your UI, otherwise he/she will never be able to check for new updates!
showUserSettings BOOL / YES optional Let the user change the updateSetting value or not

BWHockeyManagerDelegate Protocol
All methods are optional.

Method Description
- (void)connectionOpened Invoked when the internet connection is started, to let the app enable the activity indicator.
- (void)connectionClosed() Invoked when the internet connection is closed, to let the app disable the activity indicator.
- (UIViewController *)viewControllerForHockeyManager:(BWHockeyManager *)hockeyManagerConnectionOpened() Optional parent view controller for the update screen when invoked via the alert view, default is the root UIWindow instance.

Clone this wiki locally