【问题标题】:Getting Results from AppInvite Google android从 AppInvite Google android 获取结果
【发布时间】:2016-01-19 04:25:22
【问题描述】:

我在我的 Android 应用程序中使用 Google Appinvite Api 向朋友发送邀请。

我能够发送请求并且它工作正常。但我想通过我的应用跟踪我向其发送请求的朋友。

这是我获取邀请 ID 的代码。

但是如何从邀请 ID 中获取发送人姓名或电子邮件。

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if (requestCode == REQUEST_INVITE) {
        if (resultCode == RESULT_OK) {
            String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data);
            Log.d("TAG", getString(R.string.sent_invitations_fmt, ids.length));
        } else {
            showMessage(getString(R.string.send_failed));
        }
    }
}

String[] ids 是我发送的邀请 id 数组

【问题讨论】:

    标签: android google-app-invites


    【解决方案1】:

    作为应用程序,您无法获取人名和电子邮件列表,只能获取邀请 ID。电子邮件和姓名对于发送邀请的人是私有的,即拥有设备和联系人数据的人,并且该私人信息不会与发送邀请的应用程序共享。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多