【问题标题】:How to have two phonegap applications on one phone如何在一部手机上拥有两个phonegap应用程序
【发布时间】:2017-04-25 13:15:15
【问题描述】:

我用 phonegap 创建了两个应用程序。我需要在手机上同时拥有这两个,所以我下载了两个 apk。但是每次我尝试安装缺少的应用程序时,它只会覆盖现有的应用程序。如何在我的手机上同时拥有这两者?

【问题讨论】:

    标签: android mobile web-applications phonegap-build phonegap


    【解决方案1】:

    好吧,这很简单:只需在 config.xml 中为每个应用程序提供一个唯一的 id

    【讨论】:

      【解决方案2】:

      您很可能在 config.xml 文件中使用相同的“id”。为每个应用使用一个唯一的,例如:

      id = "com.example.pictures"

      id = "com.example.appTwo"

      示例 config.xml sn-p:

      <widget xmlns   = "http://www.w3.org/ns/widgets"
              xmlns:gap   = "http://phonegap.com/ns/1.0"
              id          = "com.example.appTwo" 
              versionCode = "1" 
              version     = "1.0.0">
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多