Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Fix BITAuthenticator state after cleanup #447

Merged
merged 2 commits into from
Aug 9, 2017

Conversation

MatkovIvan
Copy link

@MatkovIvan MatkovIvan commented Aug 8, 2017

Issue

Dialog with following error is shown in infinite loop (appears again and again after close):
[HockeySDK] -[BITAuthenticator validate]_block_invoke/243 Validation failed with error: Error Domain=BITAuthenticatorErrorDomain Code=6 "Make sure to identify the installation first" UserInfo={NSLocalizedDescription=Make sure to identify the installation first}

Reproduction

Code:

- (void)authenticateDevice {
  BITAuthenticator *authenticator = BITHockeyManager.sharedHockeyManager.authenticator;
  [authenticator cleanupInternalStorage];
  authenticator.identificationType = BITAuthenticatorIdentificationTypeDevice;
  authenticator.restrictApplicationUsage = YES;
  [authenticator authenticateInstallation];
}

Steps:

  1. Be already autentificated with same identificationType
  2. Call cleanupInternalStorage
  3. Call authenticateInstallation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants