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

Use application id instead of package name when running

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      I've been working on a new plugin for Cordova which will allow you to easily deploy different build types in a system lifecycle e.g. alpha, beta and store. This will allow multiple instances of the same app on your device in different states. Currently I've hit a bit of an interesting bug/issue when using this in conjunction with the run command. When the plugin operates it dynamically changes the application id depending on the state so com.test.app becomes com.test.app.alpha and so son. Because of this, when running the app from the CLI it then starts using the incorrect ID (it uses the packageName from the Android Manifest and tries to run nothing or the wrong instance).

      EDIT: See the PR for a suggested fix, and if you wish to try and replicate this issue the plugin is now available here: https://github.com/CookieCookson/cordova-plugin-lifecycle

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              Cookie_Cookson Christian Cook
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: