From 81a92400fb49cda23ae30bd6da7bf855b1cb49c1 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 4 Apr 2020 18:12:26 -0400 Subject: [PATCH] pushTestMode doesn't support nil values but defaults to it. --- platform-darwin/Source/Mac/MPMacAppDelegate.m | 6 ++---- platform-darwin/Source/iOS/MPiOSAppDelegate.m | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/platform-darwin/Source/Mac/MPMacAppDelegate.m b/platform-darwin/Source/Mac/MPMacAppDelegate.m index 845a025c..7300b685 100644 --- a/platform-darwin/Source/Mac/MPMacAppDelegate.m +++ b/platform-darwin/Source/Mac/MPMacAppDelegate.m @@ -130,11 +130,9 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven countlyConfig.appKey = decrypt( countlyKey ); countlyConfig.features = @[ CLYPushNotifications ]; countlyConfig.requiresConsent = YES; -#if PUBLIC - countlyConfig.pushTestMode = nil; -#elif DEBUG +#if DEBUG countlyConfig.pushTestMode = CLYPushTestModeDevelopment; -#else +#elif ! PUBLIC countlyConfig.pushTestMode = CLYPushTestModeTestFlightOrAdHoc; #endif countlyConfig.alwaysUsePOST = YES; diff --git a/platform-darwin/Source/iOS/MPiOSAppDelegate.m b/platform-darwin/Source/iOS/MPiOSAppDelegate.m index de66e89e..172d7457 100644 --- a/platform-darwin/Source/iOS/MPiOSAppDelegate.m +++ b/platform-darwin/Source/iOS/MPiOSAppDelegate.m @@ -138,11 +138,9 @@ void mpw_log_sink_pearl(const MPLogEvent *record) { countlyConfig.appKey = decrypt( countlyKey ); countlyConfig.features = @[ CLYPushNotifications, CLYAutoViewTracking ]; countlyConfig.requiresConsent = YES; -#if PUBLIC - countlyConfig.pushTestMode = nil; -#elif DEBUG +#if DEBUG countlyConfig.pushTestMode = CLYPushTestModeDevelopment; -#else +#elif ! PUBLIC countlyConfig.pushTestMode = CLYPushTestModeTestFlightOrAdHoc; #endif countlyConfig.alwaysUsePOST = YES;