diff --git a/Sources/BranchSDK/BNCRequestFactory.m b/Sources/BranchSDK/BNCRequestFactory.m index 23f4d910a..8bd4858e3 100644 --- a/Sources/BranchSDK/BNCRequestFactory.m +++ b/Sources/BranchSDK/BNCRequestFactory.m @@ -100,12 +100,8 @@ - (NSDictionary *)dataForInstallWithURLString:(NSString *)urlString { [self addAppleReceiptSourceToJSON:json]; [self addTimestampsToJSON:json]; - // Check if the urlString is a valid URL to ensure it's a universal link, not the external intent uri if (urlString) { - NSURL *url = [NSURL URLWithString:urlString]; - if (url && ([url.scheme isEqualToString:@"http"] || [url.scheme isEqualToString:@"https"])) { - [self safeSetValue:urlString forKey:BRANCH_REQUEST_KEY_UNIVERSAL_LINK_URL onDict:json]; - } + [self safeSetValue:urlString forKey:BRANCH_REQUEST_KEY_UNIVERSAL_LINK_URL onDict:json]; } [self addAppleAttributionTokenToJSON:json]; @@ -152,12 +148,8 @@ - (NSDictionary *)dataForOpenWithURLString:(NSString *)urlString { [self addTimestampsToJSON:json]; - // Check if the urlString is a valid URL to ensure it's a universal link, not the external intent uri if (urlString) { - NSURL *url = [NSURL URLWithString:urlString]; - if (url && ([url.scheme isEqualToString:@"http"] || [url.scheme isEqualToString:@"https"])) { - [self safeSetValue:urlString forKey:BRANCH_REQUEST_KEY_UNIVERSAL_LINK_URL onDict:json]; - } + [self safeSetValue:urlString forKey:BRANCH_REQUEST_KEY_UNIVERSAL_LINK_URL onDict:json]; } // Usually sent with install, but retry on open if it didn't get sent