gpt4 book ai didi

Android - Firebase 邀请返回错误 - 结果代码 0 - 已发送电子邮件未发送短信

转载 作者:行者123 更新时间:2023-11-30 05:12:08 24 4
gpt4 key购买 nike

在我的 nativescript-angular 应用程序中,我使用 nativescript-plugin-firebase 来实现 firebase 邀请。我在 firebase 控制台中设置了 SHA 1 和 SHA 256 我使用了 READ.ME 中共享的样板代码来测试邀请(见下文)。

firebase.invites.sendInvitation({
title: "Invite title here",
message: "Invite message here"
}).then(
function (result) { // SendInvitationResult
console.log(result.count + "invitations sent, ID's: " + JSON.stringify(result.invitationIds));
},
function (error) {
console.log("sendInvitation error: " + error);
}
);

我发现在 IOS 上,发送邀请功能按预期工作。在 android 上我面临 2 个问题:

  1. 电子邮件邀请已发送给被邀请者,但返回错误 Resultcode: 0,我没有取回邀请 ID

  2. 短信邀请没有发送给被邀请人。

已报告类似问题here - 但没有关于如何修复错误的建议。非常感谢任何建议。

最佳答案

关于 this thread Firebase 针对 Android Oreo 和更新设备的邀请中似乎存在错误。

更新:从 2019 年 1 月 24 日开始 Firebase Invites is deprecated .

关于Android - Firebase 邀请返回错误 - 结果代码 0 - 已发送电子邮件未发送短信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53532617/

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