Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10743

deviceready not firing and shut down immediately that only in windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 4.3.0
    • None
    • cordova-windows
    • Windows 10 + Cordova cli-6 + Windows 4.3.1 + my device Nokia Lumia 520 (Windows Phone 8.1)

    Description

      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>

      Attachments

        1. jqmcwindows.rar
          9.75 MB
          Colin Bau

        Activity

          People

            Unassigned Unassigned
            bau720123 Colin Bau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: