Android 的 App Invites:如何设置收到的消息内容
App Invites for Android: How to set received message content
我正在尝试测试目前处于 Beta 阶段的新 Google Play 服务 api“App Invites for Android”。也许我遗漏了一些东西,但在尝试了示例应用程序、阅读了文档并在我的应用程序中对其进行了测试后,我不知道如何设置将接收受邀人的内容消息。
我只想在 Play 商店中使用应用程序 link 显示一些内容,如文档中的图片所示,但我得到的只是一个简单的文本 "Install this application".
测试过这个新的 api 的人可以帮助我吗?
如果您将它添加到您自己的应用程序中,它会自动显示 Play 商店内容。
String inviteTitle = "This app is terrific. try and get off ";
String inviteMessage = "install the application";
Intent intent = new AppInviteInvitation.IntentBuilder(inviteTitle)
.setMessage(inviteMessage)
.build();
startActivityForResult(intent, REQUEST_INVITE);
相当确定是这样的
我正在尝试测试目前处于 Beta 阶段的新 Google Play 服务 api“App Invites for Android”。也许我遗漏了一些东西,但在尝试了示例应用程序、阅读了文档并在我的应用程序中对其进行了测试后,我不知道如何设置将接收受邀人的内容消息。
我只想在 Play 商店中使用应用程序 link 显示一些内容,如文档中的图片所示,但我得到的只是一个简单的文本 "Install this application".
测试过这个新的 api 的人可以帮助我吗?
如果您将它添加到您自己的应用程序中,它会自动显示 Play 商店内容。
String inviteTitle = "This app is terrific. try and get off ";
String inviteMessage = "install the application";
Intent intent = new AppInviteInvitation.IntentBuilder(inviteTitle)
.setMessage(inviteMessage)
.build();
startActivityForResult(intent, REQUEST_INVITE);
相当确定是这样的