[
https://issues.apache.org/jira/browse/CB-11751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15649374#comment-15649374
]
Juan Carlos ANdreu commented on CB-11751:
-----------------------------------------
I found this:
{code:javascript}
function init(config) {
...
splashElement = document.createElement('div');
splashElement.id = 'extendedSplashScreen';
...
}
{code}
{code:javascript}
function isVisible() {
return !(WinJS.Utilities.hasClass(extendedSplashScreen, 'hidden'));
}
{code}
Does not makes any sense to use extendedSplashScreen all over cordova.js when
it's the incorrect variable name. It was named splashElement and id is
extendedSplashScreen, but lalter in code extendedSplashScreen is used as the
variable name.
I replaced extendedSplashScreen for splashElement except inside strings, and
works just fine.
Please fix this.
> '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]