You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "C-A de Salaberry (JIRA)" <ji...@apache.org> on 2016/08/24 10:36:20 UTC

[jira] [Created] (CB-11751) 'extendedSplashScreen' is undefined

C-A de Salaberry created CB-11751:
-------------------------------------

             Summary: 'extendedSplashScreen' is undefined
                 Key: CB-11751
                 URL: https://issues.apache.org/jira/browse/CB-11751
             Project: Apache Cordova
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Windows
    Affects Versions: 3.5.0
         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"
            Reporter: C-A de Salaberry
            Priority: Blocker


First error that led me here:
```
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)
```

I looked around the codebase to check for that variable, found it here:
```
.\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
```
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:

```
<div id="extendedSplashScreen"></div>
```

However, the extended splashscreen still seems not to work.

I suspected the `cordova-plugin-splashscreen` to be the culprit, but removing it from cordova  





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