cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doan Isakov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-11474) protocol launch fails due to splash null reference
Date Thu, 23 Jun 2016 09:41:16 GMT
Doan Isakov created CB-11474:
--------------------------------

             Summary: 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: 4.4.0
         Environment: OS: Windows 10
Compiled with Visual Studio Community Edition 2015 
Run on PC as a Windows App
            Reporter: Doan Isakov


When the app launch in Windows is triggered using a custom URL with some payload, the app
crashes. As far as I could analyze, 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:titlecordova.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:titlecordova.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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message