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
Question
Is exist a way to diversificate the second application based on the delivery country?
Thanks in advance
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:
Which answer will be best depends on the use case. For your use case, the second option sounds best.