Changing Android package name for phonegap project

I took responsibility for adding push notification capabilities to the phone game project. Everything in iOS runs smoothly, but Android causes some problems. It seems that the problem is that the application / package package name is com.phonegap.helloworld. Urbanairship does not like the "duplicate package name", which was easily changed in xcode, but not so easily changed on the Android side.

I tried to accept the answer to this question: Change the package name to existing Phonegap projects , that is, I changed the 'package' field on the /android/AndroidManifest.xml platforms, and then reorganized the directory structure to reflect this new package. However, when I built the Android app, the old directory that I could display to change the package name reappeared. The AndroidManifest.xml file has also been modified so that the "package" field is returned to com.phonegap.helloworld.

So, I am puzzled - how do I change the name of a package?

+4
source share
1 answer

/ www .

, config.xml www. - "id" "widget":

<widget
    id="PACKAGE NAME"
    version="1.0.0"
    xmlns="http://www.w3.org/ns/widgets"
    xmlns:gap="http://phonegap.com/ns/1.0"
>

.

+19

Source: https://habr.com/ru/post/1526431/


All Articles