Skip to content

Conversation

@Khesir
Copy link
Owner

@Khesir Khesir commented Jan 26, 2026

Notification Settings Screen Error

Issue: Opening the Notification Settings screen would display "Error loading settings" with a PlatformException: Missing type parameter error

Cause: The flutter_local_notifications plugin's internal cache (stored in SharedPreferences) became corrupted, containing notification data with missing required fields

Solution: Added error handling in the notification service to gracefully catch and recover from corrupted notification cache errors

Files Changed:

  • lib/core/services/notification/notification_service.dart - Added try-catch around cancelNotification() and cancelAllNotifications() methods
  • lib/features/notifications/presentation/state/notification_settings_controller.dart - Added error handling in _applySettings() to prevent settings load failures

Workaround for existing users: If you still experience issues after updating, clear the app data from your device settings (Settings > Apps > Keep Track > Storage > Clear Data). This will reset the corrupted notification cache.

@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
keep-track-landing Ready Ready Preview, Comment Jan 26, 2026 0:56am

@Khesir Khesir deployed to production January 26, 2026 00:56 — with GitHub Actions Active
@Khesir Khesir merged commit ad11a59 into main Jan 26, 2026
4 checks passed
@Khesir Khesir deleted the khesir/dev branch January 26, 2026 00:56
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