You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/25 20:57:08 UTC

[GitHub] [cordova-plugin-wkwebview-engine] gpartida commented on issue #49: CB-12815: (ios) Fix bug nativeCallback not executed when app is in background

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org