[jira] [Updated] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doan Isakov updated CB-11474:
-
Environment: 
Windows Platform Version: 4.4.0
OS: Windows 10
Compiled with Visual Studio Community Edition 2015 
Run on PC as a Windows App

  was:
OS: Windows 10
Compiled with Visual Studio Community Edition 2015 
Run on PC as a Windows App


> 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: Windows Platform Version: 4.4.0
> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)

 [ 
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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doan Isakov updated CB-11474:
-
Labels: crash protocol-launch splash windows windows-4.4.0  (was: crash 
protocol-launch splash windows)

> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)

 [ 
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: 6.1.1

> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doan Isakov updated CB-11474:
-
Description: 
When the app launch in Windows is triggered using a custom URL (Protocol 
Declaration) 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: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

  was:
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: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


> 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
>  Labels: crash, protocol-launch, splash, windows
>   Original Estimate: 5h
>  Remaining Estimate: 5h
>
> When the app launch in Windows is triggered using a custom URL (Protocol 
> Declaration) 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: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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doan Isakov updated CB-11474:
-
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
{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

  was:
When the app launch in Windows is triggered using a custom URL (Protocol 
Declaration), 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: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


> 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
>  Labels: crash, protocol-launch, splash, windows
>   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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doan Isakov updated CB-11474:
-
Description: 
When the app launch in Windows is triggered using a custom URL (Protocol 
Declaration), 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: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

  was:
When the app launch in Windows is triggered using a custom URL (Protocol 
Declaration) 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: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


> 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
>  Labels: crash, protocol-launch, splash, windows
>   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 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: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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)
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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-11474) protocol launch fails due to splash null reference

2016-06-23 Thread Doan Isakov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doan Isakov updated CB-11474:
-
Description: 
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: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

  was:
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


> 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
>  Labels: crash, protocol-launch, splash, windows
>   Original Estimate: 5h
>  Remaining Estimate: 5h
>
> 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: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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org