Skip to content

SDK-5744: Add Five Icon push notification template for iOS#56

Open
reshab-code wants to merge 19 commits into
developfrom
task/SDK-5744-five-icon-push-template
Open

SDK-5744: Add Five Icon push notification template for iOS#56
reshab-code wants to merge 19 commits into
developfrom
task/SDK-5744-five-icon-push-template

Conversation

@reshab-code

Copy link
Copy Markdown
Contributor

Summary

Adds a new pt_five_icons push notification template that displays a horizontal row of up to 5 circular icon images, each with an optional deep link tap target.

  • New CTFiveIconsViewController and CTFiveIconsModel under Templates/FiveIcons/
  • Supports 5 image URLs (pt_img1pt_img5) and 5 deep links (pt_dl1pt_dl5)
  • Optional title (pt_title) and message (pt_msg) rendered above the icon row

- Rename template id pt_icon_list → pt_five_icons
- Rename CTIconListViewController → CTFiveIconsViewController
- Rename CTIconListModel → CTFiveIconsModel
- Rename Templates/IconList/ folder → Templates/FiveIcons/
- Remove pt_gif key and all GIF view/layout code from the template
- Update Xcode project file references and Obj-C enum/constant names
@francispereira

francispereira commented May 4, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@nishant-clevertap

Copy link
Copy Markdown
Contributor

@coderabbitai review

Comment thread CTNotificationContent.xcodeproj/project.pbxproj
Comment thread CTNotificationContent/Templates/FiveIcons/Model/CTFiveIconsModel.swift Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should be deeplink when we click on notification area apart from images?

if done { finish() }
continue
}
SDWebImageManager.shared.loadImage(with: url, options: [.retryFailed], progress: nil) { image, _, _, _, finished, _ in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we using SDWebImageManager?

}
}

DispatchQueue.main.asyncAfter(deadline: .now() + timeout) { finish() }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will call finish after timeout if images take more time to load, check this behaviour

Comment thread CTNotificationContent/Templates/Utility/GlobalConstants.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants