2
0

pushTestMode doesn't support nil values but defaults to it.

This commit is contained in:
Maarten Billemont 2020-04-04 18:12:26 -04:00
parent 7085eaf726
commit 81a92400fb
2 changed files with 4 additions and 8 deletions

View File

@ -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;

View File

@ -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;