firebase-cloud-messaging
全部标签 我正在努力让Firebase邀请发挥作用。我已按照说明进行操作here.启动邀请流程的代码如下AppInviteInvitation.IntentBuilderintentBuilder=newAppInviteInvitation.IntentBuilder(LanguageManager.getString("title-Invitation")).setMessage(LanguageManager.formatString("message-INVITATION_{game-name}",ScribbleGame.getGame().getDisplayName())).set
我知道CloudFirestore在Geopoints中根据纬度和经度存储位置。但是,我找不到根据到某个点的距离查询文档的方法或方式,就像GeoFire为实时数据库所做的那样。有什么办法可以实现吗? 最佳答案 这是我们正在研究的问题,但目前不受支持。 关于android-新的'CloudFirestore'是否可以查询基于位置的距离?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions
我正在尝试将FCM通知集成到我的项目中。我有CloudFunction后端,应用程序在android上运行。以下是发送通知的云代码:exports.notificationTest=functions.database.ref(`/test/childA/childB/status`).onUpdate(event=>{conststatus=event.data.val();console.info("ProcessingnotificationTestcloudfunction")console.info(`status:${status}`)consttoken="EnterYo
我看到数千份与通知相关的崩溃报告,但没有可行的方法来调试或检查Firebase云消息传递中通知的应用代码FatalException:android.app.RemoteServiceException:Badnotificationpostedfrompackagecom.appbootup.ipo.news:Couldn'texpandRemoteViewsfor:StatusBarNotification(pkg=com.appbootup.ipo.newsuser=UserHandle{0}id=2tag=IPO-SMEscore=10:Notification(pri=1co
我正在迁移应用以支持InstantApp。所以,我将我的项目结构模块化如下但是当我添加Firebase时,只有firebaseAnalytics可以使用它。另一个功能,例如FirebaseAuth、Storage、Firestore和Database不在这里工作。我遇到了一个错误:FirebaseAppNotInitialized.AlthoughIhavedeclaredFirebaseApp.Initialize(this)throughActivityorApplicationclass.但FirebaseAnalytic可以正常工作。如果有人知道如何解决这个问题,请帮忙。
我想通过身份验证在我的数据库中读取和写入,但我得到了两者的Permissiondenied。我想弄清楚为什么它不起作用。我使用了默认规则,因为我需要身份验证,如文档中所述。ThedefaultrulesrequireAuthentication.Theyallowfullreadandwrite>accesstoauthenticatedusersofyourapp.Theyareusefulifyouwantdataopen>toallusersofyourappbutdon'twantitopentotheworld.Firebase规则:{"rules":{".read":"au
当我尝试使用方法StorageReference.getFile(File)从Firebase存储下载文件时当设备离线并达到超时时,它会崩溃。Logcat在DynamicModulesC中显示NPE:java.lang.NullPointerException:nullreferenceatasn.a(:com.google.android.gms.DynamiteModulesC:27)相同的代码可以正常工作,并且可以在互联网连接可用时下载文件。我已经在装有Android4.1和6.0的设备和模拟器上对其进行了测试。FirebaseSDK版本9.6.1。这是firebaseSDK中的
我目前有一个使用FirebaseAuth的Android应用程序。谷歌登录后,我得到一个FirebaseUser对象。如果我设置断点并查看对象。我看到混淆的对象和值。看图:Proguard已禁用调试,所以我猜这不是问题所在:buildTypes{debug{minifyEnabledfalseproguardFilesgetDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'}release{minifyEnabledtrueproguardFilesgetDefaultProguardFile('progua
我正在测试Firebase推送通知,从FirebaseComposer面板发送通知,我注意到如果我从应用程序信息面板关闭应用程序进程,发送的推送通知不会到达设备。即使我重新启动该应用程序,通知也会丢失并且永远不会收到。我也试过这个:closetheappprocess->shutdownthedevice->poweronthedevice->sendanotification...andthenotificationisnotreceived!似乎firebase只能在设备启动了应用程序而不是100%关闭时才能收到通知,我的意思是,只用返回键关闭它但不会终止应用程序进程。这怎么可能?
我有带有Firebase数据库和Firebase云消息传递的聊天应用程序。我可以通过控制台发送firebase通知,但在实际情况下它应该是自动的。为了进行自动通知,我的friend为我编写了Index.js(添加在云功能中)文件,但它不发送通知。根据我们的逻辑函数应该在有任何新条目(在任何Node或任何房间中)时触发并通过firebase函数获取这些值并向FCM服务器发出发布请求以通知接收方设备(获取接收方的值来自token_To的设备)。留言Message_From时间类型token_ToIndex.jsvarfunctions=require('firebase-functions