[
https://issues.apache.org/jira/browse/CB-10743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173429#comment-15173429
]
Sergey Shakhnazarov commented on CB-10743:
------------------------------------------
No repro on a blank windows project:
{noformat}
f:\coho
λ cordova create testWin com.testwin testWin && cd testWin && cordova platform
add [email protected]
Creating a new cordova project.
Adding windows project...
Creating Cordova Windows Project:
App Name : testWin
Namespace : com.testwin
Path : f:\coho\testWin\platforms\windows
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the
project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for windows
f:\coho\testWin
λ cordova run windows -- --phone --device
Building project: f:\coho\testWin\platforms\windows\CordovaApp.Phone.jsproj
Configuration : debug
Platform : anycpu
CordovaApp.Phone ->
f:\coho\testWin\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_anycpu_debug_Test\CordovaApp.Phone_0.0.1.0_anycpu_debug.appx
CordovaApp.Phone ->
f:\coho\testWin\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_anycpu_debug.appxupload
Your package has been successfully created.
Deploying phone package to device:
f:\coho\testWin\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_anycpu_debug_Test\CordovaApp.Phone_0.0.1.0_anycpu_debug.appx
Attempting to remove previously installed application...
Deploying app package...
f:\coho\testWin
λ cordova platforms
Installed platforms:
windows 4.3.1
Available platforms:
amazon-fireos ~3.6.3 (deprecated)
android ~5.1.0
blackberry10 ~3.8.0
browser ~4.0.0
firefoxos ~3.6.3
webos ~3.7.0
wp8 ~3.8.2 (deprecated)
{noformat}
Device ready fires.
> deviceready not firing and shut down immediately that only in windows
> ---------------------------------------------------------------------
>
> Key: CB-10743
> URL: https://issues.apache.org/jira/browse/CB-10743
> Project: Apache Cordova
> Issue Type: Bug
> Components: Windows
> Affects Versions: 4.3.0
> Environment: Windows 10 + Cordova cli-6 + Windows 4.3.1 + my device
> Nokia Lumia 520 (Windows Phone 8.1)
> Reporter: Colin Bau
> Priority: Critical
> Labels: no-repro, triaged, wfc
>
> well...
> I know it is Unbelievable
> but the deviceready not firing that only in windows (Android 5.1.0 and iOS
> 4.0.1 have no this problem)
> when I use these html code(index.html),in Android and iOS,it will show the
> alert window immediately
> but when in Windows,it will shut down immediately (after about 1-2 seconds)
> by the way,in order to test,I don't use any core or 3rd plugins
> <!doctype html>
> <html>
> <head>
> <meta charset="utf-8">
> <meta name="viewport" content="width=device-width, initial-scale=1,
> minimum-scale=1, maximum-scale=1, user-scalable=0">
> <title>XXX</title>
> <script src="cordova.js" type="text/javascript"></script>
> <script type="text/javascript">
> document.addEventListener("deviceready", initialize, false);
> function initialize() { alert('cordova'); }
> </script>
> </head>
> <body>
> </body>
> </html>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]