Commit 87fdeaf
authored
fix(user): remove eager Firebase.messaging call that crashes before FirebaseApp init (#773)
The `Firebase.messaging.token` call in `UserManager.init` runs during Hilt
graph construction in `FlipcashApp.onCreate()`. On some devices, Firebase
has not yet initialized at this point, causing an IllegalStateException.
This call is redundant — `AuthManager.updateFcmToken()` already fetches and
registers the push token via `PushTokenProvider` during login/soft-login.
Fixes: Bugsnag 6a0c83a8dd5b5015ce623eae
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent 3662f6c commit 87fdeaf
2 files changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 105 | | |
111 | 106 | | |
112 | 107 | | |
| |||
0 commit comments