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

Florian Häser commented on CB-11751:
------------------------------------

Thank you [~daserge] now it works perfectly in my sandbox cordova cli project.

However, my other project uses a quite different structure with dynamic loading 
of cordova depending on the platform.
Cordova is appended as script tag to the documents body 
(document.body.appendChild( [scripttag] )). onActivated is never fired

It seems that WinJS requires a static import of cordova as well...


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

Reply via email to