forked from Countly/countly-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCountlyConfig.m
53 lines (43 loc) · 1.29 KB
/
CountlyConfig.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// CountlyConfig.m
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import "CountlyCommon.h"
@implementation CountlyConfig
//NOTE: Countly features
#if TARGET_OS_IOS
NSString* const CLYPushNotifications = @"CLYPushNotifications";
NSString* const CLYMessaging = @"CLYPushNotifications";
NSString* const CLYCrashReporting = @"CLYCrashReporting";
NSString* const CLYAutoViewTracking = @"CLYAutoViewTracking";
#elif TARGET_OS_TV
NSString* const CLYAutoViewTracking = @"CLYAutoViewTracking";
#endif
//NOTE: Disable APM feature until server completely supports it
// NSString* const CLYAPM = @"CLYAPM";
//NOTE: Device ID options
#if TARGET_OS_IOS
NSString* const CLYIDFA = @"CLYIDFA";
NSString* const CLYIDFV = @"CLYIDFV";
NSString* const CLYOpenUDID = @"CLYOpenUDID";
#elif TARGET_OS_OSX
NSString* const CLYOpenUDID = @"CLYOpenUDID";
#endif
- (instancetype)init
{
if (self = [super init])
{
#if TARGET_OS_WATCH
self.updateSessionPeriod = 20.0;
self.eventSendThreshold = 3;
#else
self.updateSessionPeriod = 60.0;
self.eventSendThreshold = 10;
#endif
self.storedRequestsLimit = 1000;
self.location = kCLLocationCoordinate2DInvalid;
}
return self;
}
@end