Skip to content

Commit

Permalink
removes error message when the SDK doesn't configure properly, only r…
Browse files Browse the repository at this point in the history
…ejects the error
  • Loading branch information
Eric Nograles committed Apr 20, 2017
1 parent c8b1e21 commit 6406913
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ios/RNExactTarget.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ -(void)stopObserving {
error:&error];

if (!successful) {
dispatch_async(dispatch_get_main_queue(), ^{
// something failed in the configureSDKWithAppID call - show what the error is
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Failed configureSDKWithAppID!", @"Failed configureSDKWithAppID!")
message:[error localizedDescription]
delegate:nil
cancelButtonTitle:NSLocalizedString(@"OK", @"OK")
otherButtonTitles:nil] show];
});
NSString *errorMessage = [NSString stringWithFormat: @"Could not initialize JB4A-SDK with appId %@ and accesstoken %@. Please check your configuration.", appId, accessToken];
reject(@"sdk_init_error", errorMessage, nil);
} else {
Expand Down

0 comments on commit 6406913

Please sign in to comment.