gpt4 book ai didi

android - Firebase 邀请说邀请已发送但尚未收到

转载 作者:IT老高 更新时间:2023-10-28 22:03:42 27 4
gpt4 key购买 nike

我正在尝试使用 Firebase Invites 发送邀请。当从联系人中选择一封电子邮件时,Firebase 表示已发送邀请,但从未收到该电子邮件。

在控制台上配置 SHA1 证书。

返回的错误码始终为 RESULT_OK 且 AppInviteInvitation.getInvitationIds 返回的邀请数是正确的。

SDK 在 gradle 上更新为最新版本 10.0.1,如文档中所述。

创建邀请的代码是:

Intent intent = new AppInviteInvitation.IntentBuilder(title)
.setMessage(msg)
.setCallToActionText(callToActionText)
.setOtherPlatformsTargetApplication(AppInviteInvitation.IntentBuilder.PlatformMode.PROJECT_PLATFORM_IOS, IOS_CLIENT_ID)
.build();

有什么想法吗?

最佳答案

我遇到了同样的问题,我设法解决了它,虽然我不太确定哪一步实际上有帮助。

值得指出的是,在我的情况下,当我删除方法调用时,电子邮件已完美发送:

.setOtherPlatformsTargetApplication(...)

应用了以下步骤:

  1. Android 和 iOS 项目设置(包括 App ID 前缀和 App Store ID)在 Firebase 控制台上填写了所有字段。
  2. 为 Firebase Android 项目设置添加了 SHA-256 哈希(来自调试和发布 keystore ):

    keytool -exportcert -keystore path-to-debug-or-production-keystore -list -v
  3. 更新的 google-services.json 是从 Firebase Android 项目设置下载并添加到应用程序根目录(使用 GoogleServicesJson Build Action for Xamarin)。因此,该文件包含以下内容:

    ...
    "appinvite_service": {
    "status": 2,
    "other_platform_oauth_client": [
    {
    "client_id": "1234567890-specified_ios_client_id.apps.googleusercontent.com",
    "client_type": 2,
    "ios_info": {
    "bundle_id": "ios.app.bundle.id",
    "app_store_id": "9876543210"
    }
    },
    ...
    ]
    }
    ...

.setOtherPlatformsTargetApplication(...)方法调用和google-services.json

中指定的 client_id相同>

Firebase 邀请之前已经针对 iOS 项目进行了调整,但我不知道它是否对 Android 有帮助。

关于android - Firebase 邀请说邀请已发送但尚未收到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40941029/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com