android - Cordova: How to set different package names per platform using the cordova-cli? -
i have app ios , android upgrading phonegap 2.x cordova 4.0.
as ios , android apps created using phonegap 2.x have 2 separate projects (i.e. project ios , project android). these projects have shared www directory (using symbolic links) html/css/javascript assets. when upgrade cordova 4.0 can have single cordova project , use cordova cli create projects each platform in platforms directory.
the package name used each platform in cordova set in shared config.xml file though. cordova cli uses package name set in config.xml perpare, build , add platform commands.
unfortunately package names used phonegap 2.x apps not same (i.e. package name android app different package name of ios app).
for example: android app has package name com.example.applongname ios app has package name com.example.appshortname. beginning of package name (i.e. reverse company domain name) same each app application names differ. ios application name contains capital letters.
i need keep package names used initial phonegap 2.x builds apps can updated (i.e end users can receive update replace existing install of app).
how can set package name per platform without creating 2 separate projects?
write widget way:
<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">
see other answer more details.
Comments
Post a Comment