问题描述
我们刚刚完成谷歌AppInvites整合到我们的应用程序。
We've just finished integrating Google AppInvites into our app.
我们已经注意到以下问题:
We've noticed the following issues:
电子邮件不会被发送和发送的短信的,与该说产生一个404页面的链接发送。只有出现上述的问题,如果我把我们的 setOtherPlatformsTargetApplication Android和iOS,用他们的clientId的。
Emails are not being sent and SMS's that are sent, are sent with a link that says yields a 404 page. The above issues occur only if I set our "setOtherPlatformsTargetApplication" for Android and iOS, using their clientId's.
Android的:
719104993890-lclfrqti11lulpvg18tbbbuv6bah54gh.apps.googleusercontent.com
Android:719104993890-lclfrqti11lulpvg18tbbbuv6bah54gh.apps.googleusercontent.com
的iOS:
719104993890-fq3npmoqmp7mi9839fhv6ajj8jespkot.apps.googleusercontent.com
iOS:719104993890-fq3npmoqmp7mi9839fhv6ajj8jespkot.apps.googleusercontent.com
在应用程序,我越来越从谷歌返回邀请的ID。如果我删除setOtherPlatformsTargetApplication,那么电子邮件和短信出去就好了,与在iOS设备上打开时,就带他们去了Android Play商店中,而不是苹果AppStore的问题。
Within the app, I'm getting back from Google invite ID's. If I remove the "setOtherPlatformsTargetApplication" then the emails and SMS's go out just fine, with the issue that when opened on an iOS device, it takes them to the Android PlayStore and not the Apple AppStore.
在一个SIM卡手机,那边我们的自定义图像,只有电子邮件说:被覆盖的文字(白色文字,浅灰色的背景),我似乎无法找到一个方法来消除重叠文字。
On Phones with a SIM card, there is text being overlaid (white text, light gray background) over our "Custom Image" that says "email only", and I can't seem to find a way to remove the overlaid text.
该应用程序已在测试版发布组下上传到Play商店中,仍然没有成功。
The app has been uploaded to the PlayStore under the "Beta" release group, still with no success.
任何想法? @lmoroney
Any ideas? @lmoroney
推荐答案
您应该只指定了iOS客户端ID使用setOtherPlatformTargetApplication()来自Android的,只有机器人的clientId从iOS版。要在同一个(发件人)安装在目标应用程序的平台必须是正在发送这已经是由包名(机器人),或包ID(IOS)中确定的邀请完全相同的应用程序,尽管你可以指定一个升级使用setAndroidMinimumVersion code版本()。不幸的是调用API并指定于Android的Android客户端ID将导致邀请如您所见失败。
You should only specify the iOS client id using setOtherPlatformTargetApplication() from android, and only the android clientId from iOS. The target app to be installed on the same (the senders) platform has to be the exact same app that is sending the invitation which is already identified by package name(android), or bundle Id(iOS), although you can specify an upgraded version using setAndroidMinimumVersionCode(). Unfortunately calling the api and specifying the android client id from android will cause the invitation to fail as you've seen.
这也应该解决的第二个问题,只要您指定的iOS应用程序,然后它会重定向所有iOS接收器在AppStore,当然Android用户Play商店。作为一个侧面说明,如果你包括Android应用的clientId项目只有一个iOS应用,那么匹配iOS应用程序是明确的,所以你可以省略指定的iOS的clientId。在你的情况,你的项目必须指定一个以上的iOS客户端,所以你需要通过设置API的目标应用程序来消除歧义。
This should also resolve the second issue, as long as you specify the iOS app then it will redirect all iOS receivers to the AppStore, and of course android users to the Play Store. As a side note, if the project that includes your android app clientId only has a single iOS app, then the matching iOS app is unambiguous so you can omit specifying the iOS clientId. In your case, your project must have more than one iOS client specified so you are required to disambiguate by setting the target application in the api.
我希望帮助。
这篇关于电子邮件短信的给予404未外出和链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!