Commit b5abb66
authored
Fix IOSLiveActivitiesUpdated not firing after start() on iOS 17.2+ (#132)
On iOS 17.2+, start() skipped checkForActivities() assuming pushToStartTokenUpdates
would trigger watcher setup. That stream fires at launch/token refresh but not on
direct app-initiated starts, so no state changes were ever observed for the new activity.
Fix: set up the watcher and emit the initial event inline after start() on iOS 17.2+,
mirroring what checkForActivities() would have done. Guarded by activityState nil check
so it's a no-op if a concurrent pushToStartTokenUpdates already handled it.1 parent 1c7ac8c commit b5abb66
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
0 commit comments