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;