我在Firebase函数服务中有一个发送任何FCM的函数。我会使用admin.messaging().send()函数,比如,但是在触发函数时,而不是在部署期间,我得到了这个错误:
TypeError: admin.messaging(...).send is not a function
at exports.sendChatNotification.functions.database.ref.onCreate.event (/user_code/lib/index.js:113:30)
at Object.<anonymous> (/user_code/node_
我正在尝试发送带有平台特定配置的Firebase Cloud Functions的推送通知。我从https://firebase.google.com/docs/cloud-messaging/send-message得到了以下配置 var message = {
notification: {
title: '$GOOG up 1.43% on the day',
body: '$GOOG gained 11.80 points to close at 835.67, up 1.43% on the day.',
},
data:
我正在使用谷歌的Firebase Cloud Messaging向我的iOS和安卓应用程序发送推送通知。通过Cloud Messaging控制台发送的推送通知可以正常工作,但是当我通过API发送推送通知时,iOS应用程序只在前台接收到它。在Android上,它工作正常(包括前台和后台)。
阅读文档后,iOS系统将按照预期将“通知”对象传输到系统托盘,显示“正文”消息。然而,这是不起作用的。
下面是我发送的JSON的内容:
{
"notification":
{
"body": "This a test no
我正在尝试使用Postman测试FCM,但即使FCM令牌在那里,我也总是得到以下错误。我在云消息选项卡中获得了令牌: Firebase Cloud Messaging token。 <HTML>
<HEAD>
<TITLE>The request was missing an Authentification Key (FCM Token). Please, refer to section "Authentification" of the FCM documentation, at https://fireb
我想将Firebase Cloud messaging添加到项目中。作为https://firebase.google.com/docs/cloud-messaging/ios/client中的指南,我需要添加到Podfile中: # Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Add the pod for Firebase Cloud Messaging
pod 'Firebase/Messaging' 但我在项目中已经看到了 pod 'GoogleAn
我正在使用Firebase崩溃报告和Firebase远程配置,但我没有使用Firebase云消息传递。两者的版本都是9.8.0。
所以,我不明白为什么我在日志中看到这个错误:
java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms (has extras) } without permission com.google.android.c2dm.permission.RECEI
在我的代码中添加了firebase pod之后,我得到了以下错误
这是我的pod文件
#pod 'AFNetworking'
pod 'AFNetworking', '~> 4.0'
pod 'SAMKeychain'
pod 'PaperTrailLumberjack/Swift'
pod 'MBProgressHUD'
pod 'Localytics', '~> 5.5.0'
pod 'AppAuth',
无法在我的React本机项目中解决此错误,该项目使用Firebase Cloud消息传递模块@react本机-火基/消息传递:
BUILD FAILED in 9s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServ