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

Script tags embedded in body content referencing packaged .js file do not load on Android 4.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.6.1, 1.7.0
    • None
    • cordova-android
    • None

    Description

      I've created a simple jqm app with 2 screens - when you click any on the first screen (index.html) you will follow to the second screen (second_screen.html). Second screen is including some js code in it's body as external file (with a simple alert inside).

      So an Expected Result - I click on link and see alert message

      When I deploy it on my local apache httpd server - it's working fine on desktop browsers, and native mobile browsers on ASUS Transformer TF101 (ASUS) and HTC Desire Z (HTC).

      Then, I create a Phonegap (Cordova) project on Eclipse using PhonegapForAndroid plugin (target api - 7, android 2.1), export signed apk and install in on ASUS and HTC.

      And Actual Result - apk installed on HTC - works like in a browser, but the same apk installed on ASUS - doesn't work properly - I click on a link and don't see alert.

      • I tried to reassemble the apk specifying target api - 13 (android 3.2) but it had no effect for ASUS device.
      • I tried to run the problematic apk-s on android virtual device (api 13, android 3.2) and it works fine (both apk-s, with 7 and 13 target api-s).

      PS /
      Links:
      HTML/CSS/JS bundle http://dl.dropbox.com/u/33175266/external_js_test_jqm.zip
      Eclipse project (target api - 7) http://dl.dropbox.com/u/33175266/external_js_test_jqm_api7.zip
      Eclipse project (target api - 13) http://dl.dropbox.com/u/33175266/external_js_test_jqm_api13.zip
      Signed apk (target api - 7) http://dl.dropbox.com/u/33175266/external_js_test_jqm_api7_signed.apk
      Signed apk (target api - 13) http://dl.dropbox.com/u/33175266/external_js_test_jqm_api13_signed.apk

      PSS /
      There are two links in the project, first is handled with jqm implicitly and second is calling jqm function $.mobile.changePage via handler, attached with jQuery.live on vclick event. Both of them are working well on browsers and HTC and are not working on ASUS.

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            kutyaharapos Eugene Grybinnyk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: