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

后端 未结 5 1328
伪装坚强ぢ
伪装坚强ぢ 2021-02-02 06:37

i would like to change default name of the installation package from default com.ionicframework.starterto com.something.something, how can i do it safe

5条回答
  •  再見小時候
    2021-02-02 07:04

    Changing the package name in config.xml is the first step, there are other steps that need to be done to address the op's question about 'safely' changing the package name.

    @ananth has given the practical answer. However it can be further simplified as I have tested and verified on Ionic 3.

    1. Change package name in config.xml
    2. Delete a platform, ionic cordova platform rm
    3. Add the platform back, ionic cordova platform add
    4. If the platform was Android, regenerate the signing key. This page (https://forum.ionicframework.com/t/how-to-automatically-sign-android-applications-with-the-ionic-cli/87449) gives the simplest and safest process.

提交回复
热议问题