- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
vượt qua Google
手册实现 Google AppInvite
- liên kết .
启动 Invite Hoạt động
并在 LogCat 中获取下一步:
E/AppInviteAgent: Get suggested invitees failed due to error code: 3
No Android client ID is found for package name . (APPINVITE_CLIENT_ID_ERROR)
E/AppInviteAgent: Create invitations failed due to error code: 3
No Android client ID is found for package name . (APPINVITE_CLIENT_ID_ERROR)
然后我在onActivityResult
方法中添加一个Log.d 并在LogCat 中获取:
onActivityResult: requestCode=0, resultCode=3
有人可以帮助我吗?我尝试在大约 2 周内修复它。
UPD0
// my `build.gradle` file (project level)
phụ thuộc {
classpath 'com.android.tools.build:gradle:2.0.0-beta6'
classpath 'com.google.gms:google-services:2.0.0-beta6'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
// my `build.gradle` file (app level)
compileSdkVersion 23
buildToolsVersion '23.0.2'
// ... some code
phụ thuộc {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.android.support:design:23.2.0'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-appinvite:8.4.0'
// for in-app-billing v3
compile 'com.anjlab.android.iab.v3:library:1.0.31'
}
// and in the end of the file
// for Google Invite
apply plugin: 'com.google.gms.google-services'
// my methods in the MainActivity
private void onInviteClicked() {
Intent intent = new AppInviteInvitation.IntentBuilder(
getString(R.string.txt_invitation_title))
.setMessage(getString(R.string.txt_invitation_message))
.setCallToActionText(getString(R.string.txt_invitation_cta))
.xây dựng();
startActivityForResult(intent, REQUEST_INVITE);
}
// where REQUEST_INVITE - private static final int and equal 0;
// and onActivityResult - copy from `Google` manual
@Ghi đè
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
new MyLogs("onActivityResult: requestCode=" + requestCode + ", resultCode=" + resultCode);
if (requestCode == REQUEST_INVITE) {
if (resultCode == RESULT_OK) {
// Check how many invitations were sent and log a message
// The ids array contains the unique invitation ids for each invitation sent
// (one for each contact select by the user). You can use these for analytics
// as the ID will be consistent on the sending and receiving devices.
String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data);
new MyLogs(getString(R.string.sent_invitations_fmt, ids.length));
} khác {
// Sending failed or it was canceled, show failure message to the user
new MyLogs("send_failed");
}
}
}
câu trả lời hay nhất
您是否包含了 json 配置文件?
关于java - 谷歌 AppInvite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36226129/
Triển khai Google AppInvite qua Hướng dẫn sử dụng của Google - liên kết Bắt đầu Hoạt động mời và thực hiện bước tiếp theo trong LogCat: E/AppInviteAgent: Get
我们应用程序的 build.gradle 的一部分是这样的: tasks.withType(com.android.build.gradle.tasks.PackageApplication) { p
这种情况时有发生,在 Google 的示例应用 (https://github.com/googlesamples/google-services/tree/master/android/appinv
您好,我遇到了这个问题,当我尝试从我的 android 应用程序发送 facebook appinvites 时,它永远卡在这个白色对话框中: .我已经在模拟器和真实设备中尝试过,但它一直在做同样的事
Firebase AppInvite 已被弃用,我必须更新代码。 库:com.google.firebase:firebase-invites:11.6.2 代码: private void h
我正在尝试实现 AppInvites。我已经完成了这里写的所有步骤 https://firebase.google.com/docs/invites/android 并且不断得到RESULT_CODE
出于某种原因,我不断收到 AppInvite 对话框的错误... 通过 documentation 为 iOS9 设置 info.plist 之后,在项目上设置所有 Facebook 的参数,我得到调
我想尝试来自 firebase 的应用程序邀请 - 不幸的是 onActivityResult 报告 onActivityResult 3。仅使用本文档中的代码:https://firebase.go
我正在使用谷歌图书馆 classpath 'com.google.gms:google-services:1.3.0' 而我的appinvite库版本是 compile 'com.google.a
我在我的 android 应用程序中使用 Google Appinvite Api 向 friend 发送邀请。 我能够发送请求并且它工作正常。但我想跟踪我通过我的应用向其发送请求的 friend 。
我有兴趣将 Google 的新 AppInvites 集成到我的 iOS 应用程序中。有一些问题...我目前正在使用 googleplus-ios-sdk pod,似乎我无法将 AppInvites
我正在开发一个iOS应用程序,我必须在其中邀请Facebook friend ,为此我正在使用Facebook SDK 4.0新功能this链接。 我可以获得 friend 列表,选择一个 frien
我在 Android 版 Facebook SDK 中使用 AppInvite 对话框。问题是 AppInvite 发送到的最终用户/ friend 没有收到推送通知。尽管通知出现在 Facebook
Branch 有很好的示例说明如何在 Swift 中使用 AppLinks 创建深层链接,但我找不到任何有关如何在 Swift 中创建 Facebook 的 AppInvites 的示例。有人这样做过
我在我的应用程序中使用 GPP 登录,使用最新的 GPP pod 作为 pod 'google-plus-ios-sdk',现在我想在我的应用程序中邀请 Google App。为此,我添加了第一个 p
已结束。此问题不符合 Stack Overflow guidelines .它目前不接受答案。 这个问题似乎与 help center 中定义的范围内的编程无关。 . 关闭 7 年前。 Improve
Tôi là một lập trình viên xuất sắc, rất giỏi!