Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5297 +/- ##
============================================
+ Coverage 67.78% 68.30% +0.52%
- Complexity 0 26 +26
============================================
Files 358 451 +93
Lines 15615 17865 +2250
Branches 1739 2118 +379
============================================
+ Hits 10584 12202 +1618
- Misses 4501 5045 +544
- Partials 530 618 +88
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
| const notificationDateKey = advisoryDate.toISODate(); | ||
| const todayKey = today.toISODate(); | ||
|
|
||
| // Only process notifications whose date matches today |
There was a problem hiding this comment.
Once we have some sort of in app status/warning UI we should consider popping a message if someone tries to open a stale notification. For now the app will just open up.
conbrad
left a comment
There was a problem hiding this comment.
Looks good, is local notifications only required for Android? Also do we need to hook up the new icons for iOS?
Local Notifications are only for Android, iOS always shows push notifications, even if the app is running in the foreground. The icon is only necessary for Android from what I can tell. I don't think iOS ever displays a notification icon in its status bar. |



datapackage to push notifications on the back-end@capacitor/local-notificationsto handle notifications when app is in the foreground on AndroidSideNavigationListItemcomponentCloses: #5185
Testing
dataSliceUtils.tsand settoday= 2025-07-02 or to something in the past with advisory/warning data{advisory_date: 2025-07-02, fire_centre_id: 1, fire_zone_unit: 5 }a. Send the notification when the app is in the foreground
b. Send the notification when the app is in the background
c. Send the notification when the app is not running
advisory_datein the data package to something other than thetodaydate indataSliceUtils. The push notification should be received, but opening the notification should not bring you to the advisory tab (unless you're there already) or set the fire centre or fire zone unit.Test Links:
Landing Page
MoreCast
Percentile Calculator
C-Haines
FireCalc
FireCalc bookmark
Auto Spatial Advisory (ASA)
HFI Calculator
SFMS Insights
Fire Watch
Weather Toolkit