Commit 67b0728
committed
Wrap lifecycle init in try-catch to prevent SDK init failure
A transient AsyncStorage write failure in lifecycle tracking (e.g.,
storage full, permission error) would reject the init() promise and
leave the SDK uninitialized with no-op methods for the entire session.
Lifecycle tracking is non-critical — it should not block the core
analytics SDK from functioning.
https://claude.ai/code/session_0117WwRELH1nzVbxRj7Kmm5N1 parent d0c2623 commit 67b0728
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | | - | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
| |||
0 commit comments