Skip to content

Commit

Permalink
Encode the clk_url for carousel push notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ketanshikharebsft committed Feb 13, 2021
1 parent 5e04273 commit 4b6bf6a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions BlueShift-iOS-SDK/BlueshiftEventAnalyticsHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@ + (NSDictionary *)pushTrackParameterDictionaryForPushDetailsDictionary:(NSDictio
if ([self isNotNilAndNotEmpty:urlElement]) {
[pushTrackParametersMutableDictionary setObject:urlElement forKey: kNotificationURLElementKey];
}
if([[pushDetailsDictionary objectForKey: kNotificationTypeIdentifierKey] isEqualToString:kNotificationKey] && [self isNotNilAndNotEmpty:pushDeepLinkURL]) {
NSString *encodedUrl = [BlueShiftInAppNotificationHelper getEncodedURLString:pushDeepLinkURL];
if (encodedUrl) {
[pushTrackParametersMutableDictionary setObject:encodedUrl forKey: kNotificationURLElementKey];
if([[pushDetailsDictionary objectForKey: kNotificationTypeIdentifierKey] isEqualToString:kNotificationKey]) {
if (![self isNotNilAndNotEmpty:pushDeepLinkURL]) {
pushDeepLinkURL = [self getValueBykey: pushDetailsDictionary andKey: kNotificationURLElementKey];
}
if ([self isNotNilAndNotEmpty:pushDeepLinkURL]) {
NSString *encodedUrl = [BlueShiftInAppNotificationHelper getEncodedURLString:pushDeepLinkURL];
if (encodedUrl) {
[pushTrackParametersMutableDictionary setObject:encodedUrl forKey: kNotificationURLElementKey];
}
}
}
if (deviceId) {
Expand Down

0 comments on commit 4b6bf6a

Please sign in to comment.