androidcordovagoogle-playphonegapgoogle-play-console

Google Play Console - Multiple APK for different country


I explain my problem.

Current situation

We are delivering an application that must be released for 2 separated country, in details i have 2 myApp.apk (package name "com.my.app") built and signing with the same key but both have some hardcoded javascript configurations that are different (not in the manifest but only in the app code).

Build system

We are building with the phonegap service so i haven't the full control on the manifest created.

Goal

Publish the apk diversificate for country visibility. eg. italian users can see the app "MyApp" which has an IT sever configuration wrote in the code and swiss users can see them app called with the same name but that contains different configuration.

What we tried

  1. In the play console i tried to add another app project calling it with a different name (with the same package name of the previous one just published) but when i finish the upload google said me that currently an application with the name "com.my.app" already exist

Question

Is exist a way to diversificate the second application based on the delivery country?

Thanks in advance


Solution

  • You cannot have two apps with the same package name targeted on country. This answer gives a good explanation on why.

    So you have two options:

    1. Release your app with two different package names, eg com.myapp.it and com.myapp.de
    2. Have your app change configuration based on country using something like Firebase Remote Config

    Which answer will be best depends on the use case. For your use case, the second option sounds best.