2024-10-14, 19:20
Repro of the disconnect message is a pita. This is only reproducible when running on the physical device, and w/o having the debugger connected. This is obviously a timing issue. The old implementation started the JSON heartbeat checks only 3 seconds after "UIApplicationWillEnterForegroundNotification", the new implementation does it right away. As soon as I add a minor delay of 0.1 seconds this error does not occur anymore. Also possible is to start the heartbeat check with "UIApplicationDidBecomeActiveNotification".
@kambala, Is it possible that the App cannot address JSON commands that early (WillEnterForeground) and therefor fails? (https://stackoverflow.com/questions/6362...connection points to something similar).
Edit: Raised PR#1170 for this.
@kambala, Is it possible that the App cannot address JSON commands that early (WillEnterForeground) and therefor fails? (https://stackoverflow.com/questions/6362...connection points to something similar).
Edit: Raised PR#1170 for this.