firebase-notifications

Firebase Cloud Messaging (FCM) - Launch Activity when user clicks the notification with extras

▼魔方 西西 提交于 2019-11-28 17:19:16
I'm trying to open a specific activity when the user clicks the notification, when the app is in the background, with some extra parameters. I'm using the click_action and it's working fine, the app opens the desired Activity. Now I need the server to pass an extra parameter, an id , to this Activity so I can present the desired details associated with the notification. Like an e-mail application, that when we click on the notification opens the details of that specif email. How can I do this? Ok, I have found the solution. This is the json that I'm sending from the server to the app {

What is the difference between Firebase push-notifications and FCM messages?

不打扰是莪最后的温柔 提交于 2019-11-28 17:06:35
Heloo, I am building an app where I am using push notifications via Firebase Console. I want to know what is a difference between simply push-notification and cloud message? Is it that messages from cloud messaging are data messages(have key and value) and notifications are just text without key and value?Am I right? Firebase API has two types of messages, they call them: notification data Explanation: notification - messages that goes directly to Android's Notification tray only if your application is in background/killed or gets delivered to onMessageReceived() method if your app is in

Android not receiving Firebase Push Notification - MismatchSenderId

ⅰ亾dé卋堺 提交于 2019-11-28 11:09:22
问题 I'm trying to work on a messenger app, but the twist here is I have 2 Entities ( i.e. 2 apps A & B ) here. Now I'm trying to put messaging logic between the two using Firebase. Firebase doesn't support communication between two different applications ( A & B ) over the same project url . In order to overcome that restriction, I have used the same google-service.json of app A for app B as well. For app B, I have just changed the project id and auth key . That seems to have worked as I intended

Error while delivering the message: ServiceIntent not found

混江龙づ霸主 提交于 2019-11-28 09:01:30
问题 I'm trying to integrate AWS SNS push services with FCM in my Android app. When I'm trying to send a push message through SNS online console, I get this error log: E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement E/PushListenerService: From: ************ /* My Sender ID*/ E/PushListenerService: Message: hola E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found. I've searched a bit online, and I found a seemed to be a

How to track FCM push notifications send form server side or Rest Client? [duplicate]

自古美人都是妖i 提交于 2019-11-28 08:06:02
问题 This question already has an answer here: Firebase notification records/log API 1 answer Is it possible to track push notification from firebase console which is send from server-side or Rest client. 回答1: See duplicate post. No. Currently, only messages sent through the Firebase Notifications Console are visible in the console. Messages sent through the API could be tracked in the Diagnostics Tool, keeping in mind that this doesn't include messages sent to topics. 来源: https://stackoverflow

How to use an existing GCM token within another Firebase project?

流过昼夜 提交于 2019-11-28 07:46:57
Lets say I have Google Cloud Project (GCP1) with GCM turned on with Client id P1. Now I have created a standalone Firebase project F2 WITHOUT importing it to GCP1. I have also released F2 to production. (Alternatively, I have imported F2 from an existing firebase.com project into the new Firebase console). I use a backend server to send push notifications. When I send a push to a GCM token generated via GCP1 from the F2 project, it fails (naturally) because of incorrect client ID. Are there work-arounds to enable use of GCM tokens generated for P1 within F2? When sending messages from your

Send push notification to specific user?

空扰寡人 提交于 2019-11-28 05:45:17
问题 I'm making an app where I want to be able to set a basic notification (title, message, fire date) and have been trying to figure out the best way to setup the notifications. I'm working with Swift 3 and Firebase 3. I don't want to use local notifications because if the user is logged in on multiple devices I want it to push to all those devices. Is there a way to do this with FCM where a user can set a notification to fire at a specific date and time and have it fire on all (iOS) devices

firebase iOS not receive push notifications

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 05:00:58
问题 I include google firebase in my app - create google account, create google app, upload APNS certifications (.pem and in work in another service), and send push notifications from console, and my app not receive it. In Firebase console i see status complete but Approximate number of devices is "-" Of course I updated provisions profiles and APNS cert func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Register for

Count subscribers of a topic in Firebase Cloud Messaging

此生再无相见时 提交于 2019-11-28 01:57:25
What I want to do with my app is this: users can select different interests and as soon as there are more than ~5 people interested in the same thing, I want to send them a notification. I thought Firebase + Topics would be a good choice for this. But how do I find out how many people have subscribed to a topic? AL. There is no available API to check how many subscribers a topic has. (see my answer here ) You'll have to implement the mapping on your server-side, saving the name of the topics and adding in the list of subscribers. Upon subscription, add the new subscriber, check the count (see

Firebase on Android - I want to disable firebase notifications on Android client

做~自己de王妃 提交于 2019-11-27 23:27:42
问题 I'm using Firebase console to send notifications to users. However I want to let users disable notifications. How can I disable them? I am able to handle (and stop) notifications through FirebaseMessagingService only when the app is in foreground. But I cannot stop notifications when the app is in background. 回答1: Not sure why this happens to you (code snippet maybe?), but there is a heavy weight ultimate solution: define your own c2dm receiver in the manifest and set the priority high (>0)