Check pasteboard when app enters foreground, not activation.
This commit is contained in:
parent
9e91f0a9d6
commit
b51a3de32c
@ -62,7 +62,7 @@
|
|||||||
[SentrySDK startWithOptions:@{
|
[SentrySDK startWithOptions:@{
|
||||||
@"dsn" : NilToNSNull( decrypt( sentryDSN ) ),
|
@"dsn" : NilToNSNull( decrypt( sentryDSN ) ),
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@"debug" : @(YES),
|
@"debug" : @(NO), //@(YES),
|
||||||
@"environment" : @"Development",
|
@"environment" : @"Development",
|
||||||
#elif PUBLIC
|
#elif PUBLIC
|
||||||
@"debug" : @(NO),
|
@"debug" : @(NO),
|
||||||
@ -122,7 +122,7 @@
|
|||||||
countlyConfig.deviceID = [PearlKeyChain deviceIdentifier];
|
countlyConfig.deviceID = [PearlKeyChain deviceIdentifier];
|
||||||
countlyConfig.secretSalt = decrypt( countlySalt );
|
countlyConfig.secretSalt = decrypt( countlySalt );
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
countlyConfig.enableDebug = YES;
|
//countlyConfig.enableDebug = YES;
|
||||||
countlyConfig.pushTestMode = CLYPushTestModeDevelopment;
|
countlyConfig.pushTestMode = CLYPushTestModeDevelopment;
|
||||||
#elif ! PUBLIC
|
#elif ! PUBLIC
|
||||||
countlyConfig.enableDebug = NO;
|
countlyConfig.enableDebug = NO;
|
||||||
@ -406,12 +406,6 @@
|
|||||||
inf( @"Will foreground" );
|
inf( @"Will foreground" );
|
||||||
|
|
||||||
[self.hangDetector start];
|
[self.hangDetector start];
|
||||||
}
|
|
||||||
|
|
||||||
- (void)applicationDidBecomeActive:(UIApplication *)application {
|
|
||||||
|
|
||||||
inf( @"Re-activated" );
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:MPCheckConfigNotification object:nil];
|
|
||||||
|
|
||||||
PearlNotMainQueue( ^{
|
PearlNotMainQueue( ^{
|
||||||
NSString *importData = [UIPasteboard generalPasteboard].string;
|
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 {
|
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
|
||||||
|
|
||||||
inf( @"Received memory warning." );
|
inf( @"Received memory warning." );
|
||||||
|
Loading…
Reference in New Issue
Block a user