gpartida commented on issue #49: CB-12815: (ios) Fix bug nativeCallback not executed when app is in background URL: https://github.com/apache/cordova-plugin-wkwebview-engine/pull/49#issuecomment-558336620 Can someone explain why moving the call to cordova.callbackFromNative to the next tick is necessary? I understand that this what Promise.resolve does, and that setTimeout in the original code seemed to get throttled by the iOS updates, but I don't understand why this was being queued for the next tick in the first place. What are the problems it was intended to solve? Is there some simple example interaction someone could describe to make it clear why cordova.callbackFromNative should be queued until the next tick?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
