We are developing an Cordova based iOS App. Everything works fine on iOS 13, but we experience issues on iOS 14.
Whenever the App is sent to background and retrieved again the app is unresponsive as we use Q.js for our ViewManager.
When debugging this via the Safari Web Inspector I noticed that var def = Q.defer(); def.promise.done(function(value) { alert(value); }); def.resolve("Done") works before but not after sending the app to the background.
However native Javascript Promises work as expected new Promise(function(resolve, reject) { resolve("Done"); }).then(function(value) { alert(value) });
When inspecting the def variable using def.promise.inspect() the state is resolved and I can see the value, however none of the functions (resolve, reject, finally) are called, neither in the done, nor in the then function.
Anyone experience similar issues?
Edit:
We are using Q#1.5.1