简体   繁体   English

Google Play Console - 针对不同国家的多个 APK

[英]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).我们正在交付一个必须为 2 个独立国家/地区发布的应用程序,详细而言,我构建了 2 个 myApp.apk(包名称“com.my.app”)并使用相同的密钥进行签名,但两者都有一些不同的硬编码 javascript 配置(不在清单中,而仅在应用程序代码中)。

Build system构建系统

We are building with the phonegap service so i haven't the full control on the manifest created.我们正在使用 phonegap 服务进行构建,因此我无法完全控制创建的清单。

Goal目标

Publish the apk diversificate for country visibility.发布多样化的 apk 以提高国家知名度。 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.意大利用户可以看到应用程序“MyApp”,该应用程序在代码中写入了 IT 服务器配置,而瑞士用户可以看到它们的应用程序名称相同但包含不同的配置。

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在播放控制台中,我尝试添加另一个应用程序项目,以不同​​的名称调用它(与刚刚发布的前一个项目具有相同的包名称),但是当我完成上传时,谷歌说我目前有一个名为“com.my 的应用程序” .app”已经存在

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:所以你有两个选择:

  1. Release your app with two different package names, eg com.myapp.it and com.myapp.de使用两个不同的包名称发布您的应用程序,例如 com.myapp.it 和 com.myapp.de
  2. Have your app change configuration based on country using something like Firebase Remote Config使用Firebase Remote Config 之类的工具让您的应用程序根据国家/地区更改配置

Which answer will be best depends on the use case.哪个答案最好取决于用例。 For your use case, the second option sounds best.对于您的用例,第二个选项听起来最好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM