firebase-notifications
全部标签 集成当前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
我正在尝试在我的应用程序上显示通知。我在Firebase控制台上创建了一个应用程序。注意:没有错误。当我从Firebase控制台发送消息后应用程序启动时,什么也没有出现。这里有什么问题吗?MyFireBaseInstaceIDService.javapackagecom.example.hp.mesajlasma;importandroid.util.Log;importcom.google.firebase.iid.FirebaseInstanceId;importcom.google.firebase.iid.FirebaseInstanceIdService;publicclas
我想将我的推送通知中的图像和图标从我的服务器端(php)发送到我的应用程序。我已经在Google上进行了搜索,但无法获得正确的结果。我得到FCMPHPCode.我使用这些代码发送通知,但是当我使用“图像和图标”参数图像时,通知中未收到图像。在GCM中很容易在推送通知中发送图标和图像$fields=array('registration_ids'=>$registrationIDs,'data'=>array("title"=>"SamplePushApplication","style"=>"inbox";//picture/inbox,"message"=>"Iamjusttesti
我正在努力让Firebase邀请发挥作用。我已按照说明进行操作here.启动邀请流程的代码如下AppInviteInvitation.IntentBuilderintentBuilder=newAppInviteInvitation.IntentBuilder(LanguageManager.getString("title-Invitation")).setMessage(LanguageManager.formatString("message-INVITATION_{game-name}",ScribbleGame.getGame().getDisplayName())).set
我正在尝试将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