You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've traced through the UWP Cordova launch sequence, and I've found that in cordova.js, line 1392: cordova.fireDocumentEvent('activated', platform.activationContext, true);
is fired before the customurlscheme plugin has registered.
So the call to handleOpenURL never occurs, because the event listener was added after the event has already fired.
The text was updated successfully, but these errors were encountered:
In my index.js, before the 'deviceready' event, I added a listener for activated:
let activatedURI;
function activatedHandler(e) {
if (e.uri) {
activatedURI = e.uri.rawUri;
}
}
document.addEventListener('activated', activatedHandler, false);
Then in the deviceready handler, before doing anything else, I removed the listener for activated, and dealt with the value if it was populated by calling window.handleOpenUrl(activatedUri); directly.
I've traced through the UWP Cordova launch sequence, and I've found that in cordova.js, line 1392:
cordova.fireDocumentEvent('activated', platform.activationContext, true);
is fired before the customurlscheme plugin has registered.
So the call to handleOpenURL never occurs, because the event listener was added after the event has already fired.
The text was updated successfully, but these errors were encountered: