Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
6.1.1
-
None
-
Windows Platform Version: 4.4.0
OS: Windows 10
Compiled with Visual Studio Community Edition 2015
Run on PC as a Windows App
Description
When the app launch in Windows is triggered using a custom URL (Protocol Declaration), the app crashes. As far as I could see, the reason seems to be a null reference for the system splash screen. The following occurs in cordova.js:
- The function activated is called
cordova.js
function activated(eventObject) { if (eventObject.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) { // Retrieve splash screen object splash = eventObject.detail.splashScreen;
- It does not set the splash screen because the launch is Windows.ApplicationModel.Activation.ActivationKind.protocol
- The function positionControls is called and it access the splash object
cordova.js
function positionControls() { ... ... // Position the extended splash screen image in the same location as the system splash screen image. if (isPhone) { extendedSplashImage.style.top = 0; extendedSplashImage.style.left = 0; centerY(); } else { extendedSplashImage.style.top = splash.imageLocation.y + 'px';
- The app crashes
Attachments
Issue Links
- relates to
-
CB-11470 App crashes when trying to open from another app using Custom URL (Protocol)
- Closed