firebase-cloud-messaging

Firebase Cloud Messaging Android receive silent push notifications

南笙酒味 提交于 2019-12-23 09:02:14
问题 I am trying to migrate to Firebase cloud messaging from GCM and I noticed that when the application is not running the notifications are coming in the notifications tray. With GCM this was not the case, it was up to the developer to show a notification or not. I want to have similar behavior with FCM where when the app is running I want to silently handle the push message instead of having user to click on the notification and start the app. How can I achieve that. Thanks, P 回答1: Firebase

React native with Firebase FCM

杀马特。学长 韩版系。学妹 提交于 2019-12-23 08:23:08
问题 I'm trying to implement push notification with React Native and Firebase through this documentation. I set up the settings I need by the tutorial. import React, { Component } from 'react' import { View } from 'react-native' import { Input, Text, Button } from '../Components' import type { RemoteMessage } from 'react-native-firebase' import firebase from 'react-native-firebase' import type { Notification, NotificationOpen } from 'react-native-firebase'; export default class TestComponent

Failed to resolve 'com.google.firebase:firebase-messaging:11.0.4' in Android Studio 2.3.3

社会主义新天地 提交于 2019-12-23 07:52:49
问题 I want to Set up a firebase Cloud Messaging Client App on Android studio, I am using latest version of Android studio(2.3.3) and my android SDK is fully updated. Here is my project gradle file: buildscript { repositories { jcenter() } dependencies { classpath 'com.google.gms:google-services:3.1.0' classpath 'com.android.tools.build:gradle:2.3.3' } } allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } task clean(type: Delete) { delete rootProject.buildDir } and

Failed to resolve 'com.google.firebase:firebase-messaging:11.0.4' in Android Studio 2.3.3

拜拜、爱过 提交于 2019-12-23 07:52:25
问题 I want to Set up a firebase Cloud Messaging Client App on Android studio, I am using latest version of Android studio(2.3.3) and my android SDK is fully updated. Here is my project gradle file: buildscript { repositories { jcenter() } dependencies { classpath 'com.google.gms:google-services:3.1.0' classpath 'com.android.tools.build:gradle:2.3.3' } } allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } task clean(type: Delete) { delete rootProject.buildDir } and

ld: library not found for -lGoogleToolboxForMac

℡╲_俬逩灬. 提交于 2019-12-23 07:47:21
问题 I am implementing firebase setup via pods. My Pods file looks like following one. # Uncomment the next line to define a global platform for your project platform :ios, '8.0' # $(PROJECT_DIR)/build/Debug-iphoneos/GoogleToolboxForMac lib search path target 'ProductName' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for mCura pod 'Firebase/Core' pod 'Firebase/Messaging' end Everything is fine with iPad simulator. its running

How to handle multiple Firebase FCM tokens per user?

跟風遠走 提交于 2019-12-23 06:59:45
问题 From the official documentation I understand that the way it works is something like this: User installs app, FCM token is generated Sending token to app server Server uses token to send push-notifications to this device. What if at the same time this user installs app on the other device - should I store multiple tokens per user on the app server? If yes - that means there should be something like checking for which ones are expired? 回答1: I also came across the exact challenge and had to

Sending push notification using cloud function when a new node is added in firebase realtime database? [closed]

房东的猫 提交于 2019-12-23 06:09:11
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . Sending notification when a child is added in Message node Whenever new child is added in Message node all the users should get message like"You have new message".I don't know much about node.js so I want cloud function that will send notification. 回答1: You will find hereafter links

Sending push notification using cloud function when a new node is added in firebase realtime database? [closed]

房东的猫 提交于 2019-12-23 06:09:09
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . Sending notification when a child is added in Message node Whenever new child is added in Message node all the users should get message like"You have new message".I don't know much about node.js so I want cloud function that will send notification. 回答1: You will find hereafter links

iOS FCM data only message does not call messaging:didReceiveMessage

こ雲淡風輕ζ 提交于 2019-12-23 06:04:11
问题 Firebase Messaging version 5.6.0 . I am attempting to handle a data only message in the foreground via Firebase Messaging on iOS 9.0 (10 if needed), but it is not calling FIRMessagingDelegate 's messaging:didReceiveMessage per the documentation. I see the message come in @ FIRMessaging.m 's appDidReceiveMessage:message , but never comes through to the delegate. This is the snippet from the cloud function that sends data to the topic per sending to a topic: const message = { data: { test: '123

Firebase notification in Phonegap Cordova

烈酒焚心 提交于 2019-12-23 05:11:09
问题 I'm trying to add notifications to my app in PhoneGap. For that, I'm using this plugin (https://github.com/fechanique/cordova-plugin-fcm). This seems to work. When I add a notification in firebase, I get it in the phone with the parameters I have set. Now I'm trying to get the parameters when the user entered into the app through a notification to take an special action with that data. According the the documentation in the link above, I should add this event: FCMPlugin.onNotification(