天道酬勤,学无止境

google-app-invites

How is App Invites working without google-services.json?

I've gone through the steps to setup App Invites as described here. Out of curiosity, I tried without including the google-services.json and it still works depending upon the configuration in Google Developer Console. If there is no Android API key (or there is an Android API key but no package restrictions) then App Invites works (by "works" I mean is able to send the invite message - I haven't tested the other features such as referrals). If API key package restrictions are defined then those rules are obeyed. UPDATE: Try this scenario - No Api Keys defined, Two OAuth 2.0 client IDs - one

2022-02-14 04:57:59    分类:问答    android   google-app-invites

Android AppInvites API - 如何使用 HTML 进行自定义(Android AppInvites API - How to customize with HTML)

问题 我刚刚实现了App Invites ,但启动的意图的status bar颜色与我为活动设置的颜色不同。 现在根据这个答案,它们现在可以使用HTML进行自定义,但我找不到有关如何执行此操作的文档... https://stackoverflow.com/a/35165179/4543112 编辑:这只是谣言还是有人知道这是否真的可以实现以及如何实现?

2022-01-22 02:34:00    分类:技术分享    android   styles   google-app-invites

Android AppInvites API - How to customize with HTML

I've just implemented App Invites but the intent that starts has a status bar color different than the one I've set for my activities. Now according to this answer, they are now customizable with HTML but I cannot find documentation on how to do so... https://stackoverflow.com/a/35165179/4543112 EDIT: Is it just a rumor or does anyone have an idea if this is really achievable and how?

2022-01-17 18:59:00    分类:问答    android   styles   google-app-invites

Android firebase 应用程序邀请 SecurityException 不允许执行 SYSTEM_ALERT_WINDOW(Android firebase app invites SecurityException not allowed to perform SYSTEM_ALERT_WINDOW)

问题 我已经使用此链接成功实现了 Android firebase 应用程序邀请功能,并且它适用于大多数设备。 但是在棉花糖设备(6.0.1)上,当我单击短信联系人时,系统崩溃并显示消息“不幸的是 Google Play 服务已停止。”。 在日志中我收到以下错误: 11-08 15:09:29.854 1364-1364/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.google.android.gms.ui, PID: 1364 java.lang.SecurityException: com.google.android.gms from uid 10017 not allowed to perform SYSTEM_ALERT_WINDOW at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.view.IWindowSession$Stub$Proxy.addToDisplay(IWindowSession.java:791) at android.view.ViewRootImpl.setView(ViewRootImpl.java

2022-01-14 07:16:58    分类:技术分享    android   android-6.0-marshmallow   google-app-invites

由于错误代码,获取建议的受邀者失败:3(Get suggested invitees failed due to error code: 3)

问题 我正在尝试在 kitkat 设备上运行 App Invites 演示,但它返回 Get suggested invitees failed due to error code: 3 不久之后 Create invitations failed to error code: 3 这是什么错误? 我在哪里可以找到错误列表? 回答1 根据我的经验,当您的应用程序的 SHA-1 签名与 Google Developer Console 中指定的 Android API 密钥不兼容时,就会发生这种情况 如果您不在乎哪个应用程序邀请您,那么您可能需要考虑删除应用程序/签名限制。 否则,只需添加它们。 回答2 登录 Firebase 控制台:https://console.firebase.google.com 您需要单击“添加指纹”按钮,然后添加您的 SHA1 密钥。 您无需重新下载 google-services.json,只需添加 SHA1 密钥。 尝试从您的应用发送应用邀请。 它现在可以工作了。

2022-01-13 07:29:57    分类:技术分享    google-app-invites

Android firebase app invites SecurityException not allowed to perform SYSTEM_ALERT_WINDOW

I have successfully implemented the Android firebase app invites functionality using this link and it is working fine for most of the devices. But on marshmallow device (6.0.1) when I click on the sms contact, the system crashes with message "Unfortunately Google Play Services has Stopped.". In log I get the following error: 11-08 15:09:29.854 1364-1364/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.google.android.gms.ui, PID: 1364 java.lang.SecurityException: com.google.android.gms from uid 10017 not allowed to perform SYSTEM_ALERT_WINDOW at android.os.Parcel.readException(Parcel.java

2022-01-10 02:16:49    分类:问答    android   android-6.0-marshmallow   google-app-invites

Get suggested invitees failed due to error code: 3

I'm trying to run App Invites demo on a kitkat device but it returns Get suggested invitees failed due to error code: 3 and soon after Create invitations failed to error code: 3 What kind of error is it? Where i can find an error list?

2022-01-09 02:28:14    分类:问答    google-app-invites

如何正确使用和跟踪App-invites?(How to correctly use and track App-invites?)

问题 背景 Google 允许执行应用邀请并跟踪它们对您的应用安装的改进情况: https://www.youtube.com/watch?v=UfdCNYXMC9M 问题 我做了一个简单的应用程序邀请,似乎人们确实使用它,使用以下代码: public static Intent getAppInviteIntent(Context context) { return new AppInviteInvitation.IntentBuilder(title,appName).setCustomImage(imageUri).setMessage(message).setCallToActionText(download).build(); } startActivityForResult(getAppInviteIntent(this), GOOGLE_APP_INVITES_REQUEST_CODE); 这有效,但在分析网页中,我找不到显示应用程序邀请统计信息的方法,即使他们说这是自动的(此处)。 可悲的是,即使我发现的东西看起来也很旧,而且它们使用了不推荐使用的函数。 我试过的 我想这可能不是很自动(因为教程也有一些额外的代码用于接收器部分,在这里),而且我们可能需要添加一些代码,正如这个文档所说: 当用户接受邀请并安装应用程序时,getInvitation

2021-12-21 15:43:39    分类:技术分享    android   firebase   google-analytics   google-app-invites

谷歌应用邀请(Google AppInvite)

问题 实现Google AppInvite by Google手册 - 链接。 启动 Invite Activity并在 LogCat 中获取下一个: E/AppInviteAgent: Get suggested invitees failed due to error code: 3 No Android client ID is found for package name <MY_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 <MY_PACKAGE_NAME>. (APPINVITE_CLIENT_ID_ERROR) 然后我在onActivityResult方法中添加一个 Log.d 并在 LogCat 中获取: onActivityResult: requestCode=0, resultCode=3 有人可以帮助我吗? 我尝试修复它大约 2 周。 UPD0 // my `build.gradle` file (project level) dependencies { classpath 'com

2021-12-12 20:56:50    分类:技术分享    java   android   google-app-invites