fix: actively fetch FCM token on login if not cached #63

Merged
rafaga21 merged 1 commits from feat/dashboard-aggregated-chart into master 2026-06-13 13:24:23 -04:00

1 Commits

Author SHA1 Message Date
395c84f75e fix: actively fetch FCM token on login if not cached
- LoginViewModel now calls Tasks.await(FirebaseMessaging.getInstance().token)
  to actively fetch the FCM token if not yet saved in prefs
- Previous code relied solely on onNewToken callback, which may not fire
  before the user logs in on a fresh install
2026-06-13 13:23:29 -04:00