草庐IT

FireBase

全部标签

android - DebugView 中来自 Firebase Analytics 的用户属性

我在我的android代码中放置了一些用户属性,例如:(https://firebase.google.com/docs/analytics/android/properties)mFirebaseAnalytics.setUserProperty("easy_account_connected","true");Then,Icheckeddebugviewandnothingappearswhereasifthereisabreakpoint,mycodestoppedonthisinstruction.Ican'tunderstand,inmycodethereareotherpl

android - google-services 插件无法检测到 com.google.android.gms 或 com.google.firebase 的任何版本 - 奇怪的行为

我有一个包含4个模块的项目:应用(主要)公共(public)库CD我已将firebase正确设置为此处的状态:https://firebase.google.com/docs/android/setup在我的应用模块中,我不使用任何额外的库,只使用模块依赖项:dependencies{debugCompileproject(path:':common-lib',configuration:'debug')releaseCompileproject(path:':common-lib',configuration:'release')}在我的common-lib模块中,我使用了fireb

Android/Firebase - 解析 GCM 事件中的时间戳时出错 - 空时间戳

我正在构建一个将接收推送通知的Android应用程序。我已经设置了Firebase云消息传递并且几乎可以正常工作,这样我就可以将以下有效负载发送到有效token并收到通知和数据。使用网址https://fcm.googleapis.com/fcm/send{"to":"","notification":{"body":"BODYTEXT","title":"TITLETEXT","sound":"default"},"data":{"message":"Thisissomedata"}}我的应用程序正确接收并可以处理它。唯一的小问题是我在调试中抛出了以下异常:Errorwhilepar

android - 应用程序终止时,特定 View 不会在通知点击时打开

我正在使用Plugin.FirebasePushNotification在Xamarin.Forms中处理推送通知.当应用程序终止(从任务栏终止)时,通知不会打开特定View。当应用程序打开或在后台运行时,我可以在单击通知时导航到特定页面。这是应用程序类publicclassAppClass:Android.App.Application,Android.App.Application.IActivityLifecycleCallbacks{publicoverridevoidOnCreate(){base.OnCreate();RegisterActivityLifecycleCal

android - 如何在 android 中使用 Firebase EventListener 作为后台服务?

我正在尝试制作即使应用程序关闭也能运行的后台服务。这个服务应该监听Firebase的变化,并根据触发器启动应用程序。我不知道我是否遗漏了代码中的某些内容,或者甚至没有接近正确答案,但这是我的代码:publicclassFireBaseServiceextendsService{privateHashMapfireBaseBattery;@OverridepublicvoidonCreate(){super.onCreate();fireBaseBattery=newHashMap();finalFirebasefirebaseRef_Battery=newFirebase("theur

android - 在 android 上从 gcm 迁移到 fcm

我想在Android应用程序中从gcm迁移到fcm。我是否需要从gcm向android应用程序的老用户发送推送通知,或者我可以通过服务器的新fcm发送它?FCM工作正常我可以通过fcm在我的设备上接收推送通知,但我无法从FCM控制台向旧的GCM注册token发送推送通知。下面是我添加到我的list文件中以使fcm工作的代码- 最佳答案 我想你可以通过FCM发送它。要了解有关FCM的更多信息,您可以查看frequentlyaskedquestionsaboutGCMtoFCM的文档.此外,如果您开始从GCM迁移到FCM,则可以按照以下

android - 使用 GeoFire 在 android 中填充 Firebase Recycler View

我想填充我的回收站View,这样我就可以看到附近的人/地点。我正在使用GeoFire查询我的数据库,它看起来像这样。GeoQuerygeoQuery=geoFire.queryAtLocation(newGeoLocation(latLngCenter.latitude,latLngCenter.longitude),0.1);geoQuery.addGeoQueryEventListener(newGeoQueryEventListener(){@OverridepublicvoidonKeyEntered(Stringkey,GeoLocationlocation){System.

android - FCM 推送高优先级 topic 自带延迟

我正在向订阅了一个优先级参数设置为高的主题的一小组设备(少于5个)发送推送消息Highpriority.FCMattemptstodeliverhighprioritymessagesimmediately,allowingtheFCMservicetowakeasleepingdevicewhenpossibleandopenanetworkconnectiontoyourappserver.Appswithinstantmessaging,chat,orvoicecallalerts,forexample,generallyneedtoopenanetworkconnectiona

android - 无法实例化接收器 com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver

我最近在GooglePlay上更新了我的应用程序并看到崩溃,错误消息是这样的:Unabletoinstantiatereceivercom.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver:java.lang.ClassNotFoundException:Didn'tfindclass"com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"更新只改变了广告的频率,没有别的。我正在使用firebase-core

android - Firebase 性能测试版/插件构建问题

集成当前Android时FirebasePerformanceMonitoring2017年I/O期间发布的(测试版)版本如下...添加到项目build.gradle:dependencies{classpath'com.google.firebase:firebase-plugins:1.1.0'}添加到appbuild.gradle:dependencies{compile'com.google.firebase:firebase-perf:10.2.6'}您可能会遇到以下构建错误。Error:Executionfailedfortask':app:packageDebug'.>c