【发布时间】:2015-09-11 01:16:38
【问题描述】:
我正在设计一个使用 Google 应用邀请系统的应用。我想做的是通过某种方式获取发送邀请的人的电子邮件。
即用户 1 发送邀请 > 用户 2 安装应用程序 > 活动说“你是由 User1@gmail.com 邀请的”
到目前为止,我已经实现了 Google Tutorial,它运行良好,允许人们邀请其他人安装应用程序。
我认为必须对此进行更改,但我不确定
@Override
public void onReceive(Context context, Intent intent) {
// Create deep link intent with correct action and add play store referral information
Intent deepLinkIntent = AppInviteReferral.addPlayStoreReferrerToIntent(intent,
new Intent(context.getString(R.string.action_deep_link)));
// Let any listeners know about the change
LocalBroadcastManager.getInstance(context).sendBroadcast(deepLinkIntent);
}
【问题讨论】:
标签: android google-app-invites