Problem: unable to retrieve push-to-start token upon app start
Environment: simulator, iPhone 15 Pro, iOS 18.1 (also reproduced on physical devices)
First image is a start from XCode with "Run" option (Cmd+R) where debugger is linked
Second image is a "cold" start - starting app by tapping the icon
Difference is:
- Start observing (line 2), push token changed (last line). Everything is okay
- Push token changed (7 line), start observing (9 line). liveactivitysd generates token before we reach pushToStartTokenUpdates loop - we losing token
The question is: how is this possible (case 2)?