diff --git a/CountlyContentBuilderInternal.m b/CountlyContentBuilderInternal.m index d6543628..6581d0e3 100644 --- a/CountlyContentBuilderInternal.m +++ b/CountlyContentBuilderInternal.m @@ -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, diff --git a/CountlyDeviceInfo.h b/CountlyDeviceInfo.h index 109f5f97..046a0ad8 100644 --- a/CountlyDeviceInfo.h +++ b/CountlyDeviceInfo.h @@ -27,6 +27,7 @@ typedef enum : NSUInteger - (CLYDeviceIDTypeValue)deviceIDTypeValue; + (NSString *)device; ++ (NSString *)deviceType; + (NSString *)architecture; + (NSString *)osName; + (NSString *)osVersion; diff --git a/CountlyWebViewManager.m b/CountlyWebViewManager.m index b1b3c0cd..6e879854 100644 --- a/CountlyWebViewManager.m +++ b/CountlyWebViewManager.m @@ -254,6 +254,8 @@ - (void)recordEventsWithJSONString:(NSString *)jsonString { [Countly.sharedInstance recordEvent:key segmentation:segmentation]; } + + [CountlyConnectionManager.sharedInstance attemptToSendStoredRequests]; } - (void)openExternalLink:(NSString *)urlString {