Commit b624f73
Disable Local Notifications for WeeklyRoundupBackgroundTask for WordPress behind a feature flag (#19590)
* update weeklyRoundup FeatureFlag.swift to be similar to how its handled for bloggingPrompts
* remove pending notifications on WordPress when notifications are disabled
* update NotificationFilteringService.swift to remove pending notifications when the app is WordPress
* WeeklyRoundup Task changes for WordPress app so that a local notification will not be displayed if there was one already scheduled as well as preventing scheduling of future tasks
* updated RELEASE-NOTES.txt
* logic correction to only cancel pending notifications when we are setting to false
* updated FeatureFlag to use NotificationFilteringService
* remove call to cancel local notifications - erroneously called from jetpack
* update WeeklyRoundupBackgroundTask.swift so that its disabling of the task and notification is determined by the NotificationFilteringService state
* Update WordPress/Classes/Services/NotificationFilteringService.swift
Co-authored-by: Povilas Staskus <[email protected]>
* updated RELEASE-NOTES.txt
Co-authored-by: Povilas Staskus <[email protected]>1 parent e2e9786 commit b624f73
File tree
5 files changed
+52
-4
lines changed- WordPress
- Classes
- Services
- Utility
- BackgroundTasks
- BuildInformation
- WordPress.xcodeproj
5 files changed
+52
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
56 | 72 | | |
57 | 73 | | |
58 | 74 | | |
| |||
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
263 | | - | |
| 264 | + | |
| 265 | + | |
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| |||
357 | 359 | | |
358 | 360 | | |
359 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
360 | 370 | | |
361 | 371 | | |
362 | 372 | | |
| |||
485 | 495 | | |
486 | 496 | | |
487 | 497 | | |
| 498 | + | |
488 | 499 | | |
489 | 500 | | |
490 | 501 | | |
| 502 | + | |
491 | 503 | | |
492 | 504 | | |
493 | 505 | | |
| |||
506 | 518 | | |
507 | 519 | | |
508 | 520 | | |
| 521 | + | |
509 | 522 | | |
510 | 523 | | |
511 | 524 | | |
| |||
611 | 624 | | |
612 | 625 | | |
613 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
614 | 631 | | |
615 | 632 | | |
616 | 633 | | |
| |||
649 | 666 | | |
650 | 667 | | |
651 | 668 | | |
652 | | - | |
| 669 | + | |
653 | 670 | | |
654 | 671 | | |
655 | 672 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2909 | 2909 | | |
2910 | 2910 | | |
2911 | 2911 | | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
2912 | 2919 | | |
2913 | 2920 | | |
2914 | 2921 | | |
| |||
19623 | 19630 | | |
19624 | 19631 | | |
19625 | 19632 | | |
| 19633 | + | |
19626 | 19634 | | |
19627 | 19635 | | |
19628 | 19636 | | |
| |||
21395 | 21403 | | |
21396 | 21404 | | |
21397 | 21405 | | |
| 21406 | + | |
21398 | 21407 | | |
21399 | 21408 | | |
21400 | 21409 | | |
| |||
21487 | 21496 | | |
21488 | 21497 | | |
21489 | 21498 | | |
| 21499 | + | |
21490 | 21500 | | |
21491 | 21501 | | |
21492 | 21502 | | |
| |||
21616 | 21626 | | |
21617 | 21627 | | |
21618 | 21628 | | |
| 21629 | + | |
21619 | 21630 | | |
21620 | 21631 | | |
21621 | 21632 | | |
| |||
21691 | 21702 | | |
21692 | 21703 | | |
21693 | 21704 | | |
| 21705 | + | |
21694 | 21706 | | |
21695 | 21707 | | |
21696 | 21708 | | |
| |||
21766 | 21778 | | |
21767 | 21779 | | |
21768 | 21780 | | |
| 21781 | + | |
21769 | 21782 | | |
21770 | 21783 | | |
21771 | 21784 | | |
| |||
21905 | 21918 | | |
21906 | 21919 | | |
21907 | 21920 | | |
| 21921 | + | |
21908 | 21922 | | |
21909 | 21923 | | |
21910 | 21924 | | |
| |||
0 commit comments