Android 应用商店链接未显示在应用邀请电子邮件中
我正在尝试在我们的应用程序中实现应用程序邀请,但我无法让iOS客户端链接到应用程序商店。他们总是显示Play store链接 根据,如果在开发者控制台的项目中有多个iOS客户端id,我们需要调用setOtherPlatformsTargetApplication。问题是,如果我尝试添加iOS应用程序客户端id,电子邮件将永远不会发送Android 应用商店链接未显示在应用邀请电子邮件中,android,google-app-invites,Android,Google App Invites,我正在尝试在我们的应用程序中实现应用程序邀请,但我无法让iOS客户端链接到应用程序商店。他们总是显示Play store链接 根据,如果在开发者控制台的项目中有多个iOS客户端id,我们需要调用setOtherPlatformsTargetApplication。问题是,如果我尝试添加iOS应用程序客户端id,电子邮件将永远不会发送 .setOtherPlatformsTargetApplication(PROJECT_PLATFORM_IOS, "104
.setOtherPlatformsTargetApplication(PROJECT_PLATFORM_IOS,
"104XXXXXXXXXX-i089XXXXXXXXXXXX.apps.googleusercontent.com")
如果我忽略了这个电话,电子邮件将被发送,但它指向Play store
无论如何,检查google-services.json只会显示一个iOS客户端id
{
"project_info": {
...
},
"client": [
{
"client_info": {
"package_name": "com.mycompany"
},
"oauth_client": [
...
],
"api_key": [
],
"services": {
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "XXXXXX-YYYYY.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.mycompany.app",
"app_store_id": "123456789"
}
},
{
"client_id": "XXXXXX-JJJJJJJJ.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
[
another client info for the debug package name
],
"client_info": [
],
"ARTIFACT_VERSION": "1"
}
我不知道我还能尝试什么,欢迎任何想法
我正在为android和谷歌服务的gradle插件使用AS 2.0 preview 9和2.0.0-alpha9版本。另外,如中所述,我将应用插件放在app/build.gradle的底部。问题是我有两个共享相同捆绑ID的凭据
此外,最近添加的(也是googleservices.json中列出的唯一一个)没有被使用。一旦我删除了它,真正的凭证就被添加到json文件中,对setOtherPlatformsTargetApplication的调用工作得很好。你能分享你的google-service.json结构吗,iOS应用程序在哪里工作?google-services.json是个问题,我不必更改结构,只有客户id。不管怎么说,这是9个月前发布的,并且是测试版,也许他们改变了什么。首先,它看起来已经集成到Firebase中。我已经在我的应用程序(我不再从事的旧项目)上进行了测试,为电子邮件生成的链接在应用程序上似乎可以正常工作,但在从桌面浏览器打开时却不行。