Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Widget ID or Package Name for android/iOS platform on phonegap?

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?

like image 293
filype Avatar asked Jul 02 '14 22:07

filype


1 Answers

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.

like image 82
Aks Avatar answered Sep 28 '22 19:09

Aks