Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CountlyContentBuilderInternal.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ - (NSURLRequest *)fetchContentsRequest
queryString = [queryString stringByAppendingFormat:@"&%@=%@",
@"la", components.firstObject];

NSString* deviceType = CountlyDeviceInfo.deviceType;

if(deviceType){
queryString = [queryString stringByAppendingFormat:@"&%@=%@", @"dt", deviceType];
}


NSString* URLString = [NSString stringWithFormat:@"%@%@?%@",
CountlyConnectionManager.sharedInstance.host,
kCountlyEndpointContent,
Expand Down
1 change: 1 addition & 0 deletions CountlyDeviceInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ typedef enum : NSUInteger
- (CLYDeviceIDTypeValue)deviceIDTypeValue;

+ (NSString *)device;
+ (NSString *)deviceType;
+ (NSString *)architecture;
+ (NSString *)osName;
+ (NSString *)osVersion;
Expand Down
2 changes: 2 additions & 0 deletions CountlyWebViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ - (void)recordEventsWithJSONString:(NSString *)jsonString {

[Countly.sharedInstance recordEvent:key segmentation:segmentation];
}

[CountlyConnectionManager.sharedInstance attemptToSendStoredRequests];
}

- (void)openExternalLink:(NSString *)urlString {
Expand Down
Loading