简体   繁体   English

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

[英]Android - Firebase invites returns error - Resultcode 0 - Emails sent SMS not sent

In my nativescript-angular app, I am using the nativescript-plugin-firebase to implement firebase invites. 在我的nativescript-angular应用程序中,我正在使用nativescript-plugin-firebase实施firebase邀请。 I have setup both the SHA 1 and SHA 256 in the firebase console I have used the boilerplate code shared in READ.ME to test the invites (see below). 我已经在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);
    }
);

I find that while on IOS the send invite function works as expected. 我发现在IOS上,发送邀请功能按预期工作。 On android I face 2 issues: 在android上,我面临2个问题:

  1. Email invitation is sent to the invitee but an error Resultcode: 0 is returned and I do not get back the invitation ID 电子邮件邀请发送给被邀请人,但错误结果Resultcode: 0返回Resultcode: 0 ,但我没有找回邀请ID

  2. SMS invite is not sent to the invitee. 短信邀请未发送给被邀请人。

A similar issue has been reported here - but there are no suggestions on what can be done to fix the error. 此处已报告类似的问题-但对于如何解决该错误没有任何建议。 Would appreciate any suggestions. 将不胜感激任何建议。

Regarding to this thread there seems to be a bug in Firebase's Invitations for Android Oreo and newer devices. 关于此线程 ,Firebase的Android Oreo和较新设备的邀请函中似乎存在一个错误。

Update: Starting January 24th 2019 Firebase Invites is deprecated . 更新:从2019年1月24日开始, 不推荐使用Firebase邀请

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

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