Commit add410d
committed
fix: make Firebase initialization synchronous to prevent race condition
FirebaseInitializer was launching Firebase.initialize() on Dispatchers.IO,
but UserManager accesses Firebase.messaging.token synchronously during Hilt
injection in Application.onCreate(). This race causes IllegalStateException
when the IO coroutine hasn't completed before injection runs.
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent 11b54ba commit add410d
1 file changed
Lines changed: 1 addition & 6 deletions
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 10 | + | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
| |||
0 commit comments