Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8801 Browserify Master Issue
  3. CB-8183

Browserify generates bad cordova.js with multi-platform build

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      I was trying out the browserify flag today, and overall I love the idea. I found one issue when building for multiple platforms:

      cordova platform add ios android
      cordova build --browserify
      

      The Android build was fine, but the iOS build was throwing up prompt boxes. My guess is that browserify generated a cordova.js for Android and then used the same file for iOS, so the Android bridge/exec code was getting run on iOS and failing.

        Attachments

          Activity

            People

            • Assignee:
              stevegill Steve Gill
              Reporter:
              dpogue Darryl Pogue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: