From b51a3de32c6d506f39217cef1e0f35157b081e0a Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 5 Jul 2020 20:24:59 -0400 Subject: [PATCH] Check pasteboard when app enters foreground, not activation. --- platform-darwin/Source/iOS/MPiOSAppDelegate.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform-darwin/Source/iOS/MPiOSAppDelegate.m b/platform-darwin/Source/iOS/MPiOSAppDelegate.m index 9602303a..2a6c14e7 100644 --- a/platform-darwin/Source/iOS/MPiOSAppDelegate.m +++ b/platform-darwin/Source/iOS/MPiOSAppDelegate.m @@ -62,7 +62,7 @@ [SentrySDK startWithOptions:@{ @"dsn" : NilToNSNull( decrypt( sentryDSN ) ), #ifdef DEBUG - @"debug" : @(YES), + @"debug" : @(NO), //@(YES), @"environment" : @"Development", #elif PUBLIC @"debug" : @(NO), @@ -122,7 +122,7 @@ countlyConfig.deviceID = [PearlKeyChain deviceIdentifier]; countlyConfig.secretSalt = decrypt( countlySalt ); #if DEBUG - countlyConfig.enableDebug = YES; + //countlyConfig.enableDebug = YES; countlyConfig.pushTestMode = CLYPushTestModeDevelopment; #elif ! PUBLIC countlyConfig.enableDebug = NO; @@ -406,12 +406,6 @@ inf( @"Will foreground" ); [self.hangDetector start]; -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - - inf( @"Re-activated" ); - [[NSNotificationCenter defaultCenter] postNotificationName:MPCheckConfigNotification object:nil]; PearlNotMainQueue( ^{ NSString *importData = [UIPasteboard generalPasteboard].string; @@ -434,6 +428,12 @@ } ); } +- (void)applicationDidBecomeActive:(UIApplication *)application { + + inf( @"Re-activated" ); + [[NSNotificationCenter defaultCenter] postNotificationName:MPCheckConfigNotification object:nil]; +} + - (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { inf( @"Received memory warning." );