【问题标题】:Google AppInvite: Email is not sent, while SMS is sentGoogle AppInvite:不发送电子邮件,但发送短信
【发布时间】:2015-08-22 11:13:11
【问题描述】:

我正在使用谷歌图书馆

 classpath 'com.google.gms:google-services:1.3.0'

我的appinvite库版本是

 compile 'com.google.android.gms:play-services-appinvite:7.8.0'

在使用 appinvites 时,我可以使用短信和电子邮件轻松发送邀请。但在接收端只收到短信,我无法发送电子邮件。

这是库中的错误还是我遗漏了其他内容?

编辑: 我的代码中的其他所有内容都遵循 google 的 appinvite guidelines

【问题讨论】:

  • 面临同样的问题。代码运行良好,我什至从框架中获取了 appinvite id,收到了 SMS,但没有收到电子邮件。咳咳……?你解决了吗?

标签: android google-play-services google-app-invites


【解决方案1】:

我尝试了 App invent 演示应用 here,并按照步骤操作。

我可以发送电子邮件并且可以接收。

您可以尝试将源代码here 与您的进行比较。

也许您忘记在开始时连接GoogleApiClient。请注意,在顶部的build.gradle 中,它包含:

classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.google.gms:google-services:1.3.0-beta1'

【讨论】:

  • 我必须坚持使用 beta1 版本吗?当前版本是 1.3.0,这是第 4 次迭代,此外,我们还启用了另一个 google api,例如 plus、maps、location 和 gcm。所以我不愿意恢复到 beta1。
  • 不,您不需要坚持使用 beta1。我也试过1.3.0。它表明它也有效。您可以尝试将源代码here 与您的进行比较。
  • @ZoomAzure 我也遇到了同样的问题,你解决了吗?
【解决方案2】:

似乎缺少 google-services.json。您需要将 google-services.json 文件放在项目内的 app 模块中。

google-services.json location in the project tree

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-18
    • 2017-02-03
    相关资源
    最近更新 更多