Skip to content

Conversation

@bbirman
Copy link
Member

@bbirman bbirman commented Nov 23, 2025

No description provided.


private extension PushNotificationManager {

func createNotificationCategories(from type: NotificationType) -> [UNNotificationCategory] {
Copy link
Member Author

Choose a reason for hiding this comment

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

It looks like the deleted code is duplicative of the methods in NotificationCategoryFactory.swift

Copy link
Contributor

Choose a reason for hiding this comment

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

Does NotificationCategoryFactory.shared.createCategories behave differently from the duplicate?

Copy link
Member Author

Choose a reason for hiding this comment

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

It returns a set instead of an array but otherwise I didn't see a behavior difference until it calls into createActions. I was wondering if we should keep this and delete NotificationCategoryFactory but that one is public

Copy link
Contributor

Choose a reason for hiding this comment

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

Because of semver, we can't do that (in 13.2 at least).

UNNotificationAction(
identifier: action.identifier,
title: action.label,
options: [.foreground] // Ensures the app opens if needed
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the line causing the issue and the updated logic is already in the other class here

@codecov
Copy link

codecov bot commented Nov 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.34%. Comparing base (27bf5db) to head (e122204).
⚠️ Report is 27 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #3954      +/-   ##
==========================================
- Coverage   63.96%   63.34%   -0.63%     
==========================================
  Files         252      252              
  Lines       22100    22080      -20     
==========================================
- Hits        14137    13986     -151     
- Misses       7963     8094     +131     
Components Coverage Δ
Analytics 70.78% <ø> (ø)
Common 69.76% <ø> (ø)
Core 53.90% <100.00%> (-1.00%) ⬇️
SmartStore 74.59% <ø> (ø)
MobileSync 87.41% <ø> (ø)
Files with missing lines Coverage Δ
...hNotificationManager+ActionableNotifications.swift 89.83% <100.00%> (-1.08%) ⬇️

... and 9 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bbirman bbirman merged commit 98edec1 into forcedotcom:dev Dec 17, 2025
24 of 36 checks passed
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.

2 participants