[
https://issues.apache.org/jira/browse/CB-11474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doan Isakov updated CB-11474:
-----------------------------
Affects Version/s: (was: 4.4.0)
> protocol launch fails due to splash null reference
> --------------------------------------------------
>
> Key: CB-11474
> URL: https://issues.apache.org/jira/browse/CB-11474
> Project: Apache Cordova
> Issue Type: Bug
> Components: Windows
> Affects Versions: 6.1.1
> Environment: OS: Windows 10
> Compiled with Visual Studio Community Edition 2015
> Run on PC as a Windows App
> Reporter: Doan Isakov
> Labels: crash, protocol-launch, splash, windows, windows-4.4.0
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> 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
> {code:title=cordova.js|borderStyle=solid}
> function activated(eventObject) {
> if (eventObject.detail.kind ===
> Windows.ApplicationModel.Activation.ActivationKind.launch) {
> // Retrieve splash screen object
> splash = eventObject.detail.splashScreen;
> {code}
> # 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
> {code:title=cordova.js|borderStyle=solid}
> 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';
> {code}
> # The app crashes
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]