Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova + Ionic framework - How to safely change package name?

i would like to change default name of the installation package from default com.ionicframework.starterto com.something.something, how can i do it safely please? What i should to edit?

Thanks for any advice.

like image 975
redrom Avatar asked Dec 07 '14 18:12

redrom


People also ask

How do I change the package name in ionic?

Change the id to whatever you wish your package to be and it will work for the entire project, Android and iOS. However, if you've already submitted to the app store with a package name, you cannot change the package name at this point.

Can I change package name Android?

Step 1: To rename package name in Android studio open your project in Android mode first as shown in the below image. Step 2: Now click on the setting gear icon and deselect Compact Middle Packages. Step 3: Now the packages folder is broken into parts as shown in the below image.

How do you change the IO ionic starter?

starter" by going to Edit > Find > Replace in Files … Then in Android Studio I searched for files with 'config' in them and looked for "io. ionic. starter" and replaced it there manually.

Which is better ionic or Cordova?

The developers choose Cordova because of its plugins, excellent community support, and the ability to use JavaScript for mobile development. In contrast, developers choose Ionic for its rapid prototyping, great designs, and hybrid mobile style.


1 Answers

You should make this change in the config.xml found at the root of your project. For example you might have something like this:

<widget id="com.ionicframework.exampleproject223738" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> 

Change the id to whatever you wish your package to be and it will work for the entire project, Android and iOS.

However, if you've already submitted to the app store with a package name, you cannot change the package name at this point. Not unless you want to submit a new project. Updates must be made with matching package names.

Regards,

like image 58
Nic Raboy Avatar answered Sep 29 '22 00:09

Nic Raboy