在Phonegap上更改Android / iOS平台的小部件ID或包名称? [英] Change Widget ID or Package Name for android/iOS platform on phonegap?

查看:148
本文介绍了在Phonegap上更改Android / iOS平台的小部件ID或包名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google Play中有一个包含 com.example001.android 的应用程式,以及iOS商店中名称为 com.example001的应用程式。 ios



但是,我现在使用 phonegap build ,删除了很多bootstrap代码,只留下 www 文件夹,我使用 config.xml中的widget id ,所以现在我只有1 config.xml



如果我设置小部件ID com.example001.ios 我无法在Android中发布此应用程序。如果我离开小部件id com.example001.android 我无法在苹果商店发布此应用程序。



如果我将小组件ID更改为通用小组件,请说 com.example001.mobile



如何为每个目标平台设置程序包名称/ ID?

解决方案

尝试:

 < widget id =com.company.appandroid-packageName =com.company.androidappios-CFBundleIdentifier =com.company.iosappversion =1.0.0xmlns =http://www.w3.org / ns / widgetsxmlns:cdv =http://cordova.apache.org/ns/1.0> 

android-packageName & ios-CFBundleIdentifier 属性未正确记录,但其工作在最新(4.1.2)cordova上测试。


I have an app in Google Play with package com.example001.androidand one app in the iOS store with the name com.example001.ios.

However, I am now using the phonegap build, have removed a lot of the bootstrap code, leaving only the www folder, I am using the widget id from config.xml, so now I only have 1 config.xml.

If I set the widget id to com.example001.ios I can't publish this app in android. If I leave the widget id to com.example001.android I can't publish this app in apple store.

If I change the widget ID to a generic one, say com.example001.mobile, then I won't be able to upload the app to Google Play because the package name changes.

How do I set the package name/ID for each target platform?

解决方案

Try this:

<widget id="com.company.app" android-packageName="com.company.androidapp" ios-CFBundleIdentifier="com.company.iosapp" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

P.S. android-packageName & ios-CFBundleIdentifier property are not properly documented but its works tested on latest(4.1.2) cordova.

这篇关于在Phonegap上更改Android / iOS平台的小部件ID或包名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆