[ 
https://issues.apache.org/jira/browse/CB-11751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15650724#comment-15650724
 ] 

Juan Carlos ANdreu commented on CB-11751:
-----------------------------------------

[~daserge] just tested the code further, and it fails because of a router I'm 
developing. 

I didn't read anywhere that the body cant be cleared when developing for 
windows, so I clear it when changing pages on my SPA.

The main issue is (i think OP has the same) that when the body is cleared, the 
div is removed before that code is called.

What alternatives do I have? Should I create a container for my elements, 
instead of using the whole body?

I think the IsVisible method, should check if element exists, because if it 
doesnt, means is not visible right!? . Just doing a simple typeof 
extendedSplashScreen ==='undefined' return false would fix it.

Personally, i think this should be VERY CLEAR in the cordova docs. 

Cheers

> 'extendedSplashScreen' is undefined
> -----------------------------------
>
>                 Key: CB-11751
>                 URL: https://issues.apache.org/jira/browse/CB-11751
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin SplashScreen, Windows
>    Affects Versions: 4.4.2
>         Environment: $ cordova -v
> 6.3.1
> $ cordova platform
> Installed platforms:
>   android 5.2.2
>   windows 4.4.2
> Available platforms:
>   amazon-fireos ~3.6.3 (deprecated)
>   blackberry10 ~3.8.0
>   browser ~4.1.0
>   firefoxos ~3.6.3
>   webos ~3.7.0
>   wp8 ~3.8.2 (deprecated)
> $ cordova plugins list
> com.phonegap.plugins.nativesettingsopener 1.3 "Native settings"
> cordova-custom-config 1.2.6 "cordova-custom-config"
> cordova-fabric-plugin 1.0.8 "cordova-fabric-plugin"
> cordova-plugin-app-version 0.1.8 "AppVersion"
> cordova-plugin-camera 2.1.1 "Camera"
> cordova-plugin-compat 1.0.0 "Compat"
> cordova-plugin-crosswalk-webview 1.7.2 "Crosswalk WebView Engine"
> cordova-plugin-device 1.1.2 "Device"
> cordova-plugin-dialogs 1.2.1 "Notification"
> cordova-plugin-file 4.2.0 "File"
> cordova-plugin-file-transfer 1.5.1 "File Transfer"
> cordova-plugin-fullscreen 1.1.0 "cordova-plugin-fullscreen"
> cordova-plugin-globalization 1.0.3 "Globalization"
> cordova-plugin-network-information 1.2.1 "Network Information"
> cordova-plugin-splashscreen 3.2.2 "Splashscreen"
> cordova-plugin-whitelist 1.2.2 "Whitelist"
> ionic-plugin-keyboard 2.0.1 "Keyboard"
> phonegap-plugin-push 1.8.1 "PushPlugin"
> Model: HP Elite x3
> Software: Windows 10 Mobile
> Version 1511
> OS Build: 10.0.10586.494
> Firmware revision number: 0001.0000.0006.0243
> Screen resolution: 1440x2560
>            Reporter: C-A de Salaberry
>            Assignee: Sergey Shakhnazarov
>            Priority: Blocker
>              Labels: no-repro, triaged, windows
>
> First error that led me here:
> {code:title=Console|borderStyle=solid}
> Warning: A more recent version of cordova-plugin-splashscreen has been hooked 
> into for compatibility reasons. Update the plugin to version >= 4.
> cordova.js (925,13)
> Exception calling native with command :: SplashScreen :: hide 
> ::exception=ReferenceError: 'extendedSplashScreen' is undefined
> cordova.js (993,13)
> {code}
> I looked around the codebase to check for that variable, found it here:
> {code}
> .\platforms\windows\platform_www\css\splashscreen.css
> .\platforms\windows\platform_www\cordova.js
> .\platforms\windows\platform_www\cordova-js-src\splashscreen.js
> .\platforms\windows\www\cordova-js-src\splashscreen.js
> .\platforms\windows\www\css\splashscreen.css
> .\platforms\windows\www\cordova.js
> {code}
> The most interesting one being any of the two splashscreen.js
> The variable extendedSplashScreen is never defined.
> I find out that by adding the bollowing in my body, the error goes away:
> {code:html}
> <div id="extendedSplashScreen"></div>
> {code}
> However, the extended splashscreen still seems not to work.
> I suspected the `cordova-plugin-splashscreen` to be the culprit, but removing 
> it from cordova led to the same error.
> I will keep investigating and report my findings here.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to