fcm-push | JS simple interface to Firebase Cloud Messaging | Authentication library
kandi X-RAY | fcm-push Summary
kandi X-RAY | fcm-push Summary
A Node.JS simple interface to Firebase Cloud Messaging (FCM) for Android & iOS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fcm-push
fcm-push Key Features
fcm-push Examples and Code Snippets
Community Discussions
Trending Discussions on fcm-push
QUESTION
When an application receives push notification
from FCM
, it calls onMessageReceived
. (See 1, 2 or 3.)
When a user taps the notification, it launches the applications, then it sends a request to a server that the user has read the notification.
I want to know when a device received a push notification, but the user swiped it (or cleared all notifications). I want to send a request to the server that the user simply cancelled the notification.
I tried to send BroadcastReceiver
and show logs (see 4 or 5), but it works when the application was opened when the notification delivered. I suppose, that
MyFirebaseMessagingService:
...ANSWER
Answered 2021-Jan-14 at 15:14After a short time it worked right (though I hardly changed much). After a lot of research I made this solution. Tested on several Android emulators and devices from API 19 to API 30.
Because using BroadcastReceiver
is not safe, add in AndroidManifest:
QUESTION
Having trouble with Intercom push notifications. I am unable to receive any push notifications on the device from Intercom; standard notifications sent from FCM work perfectly as expected.
Have followed this tutorial, and have added the server key to Intercom as suggested.
CloudMessaging.java
...ANSWER
Answered 2020-Jul-05 at 23:43You only need one instance of "com.google.firebase.MESSAGING_EVENT"
in the Gradle file. In my case I stuck with .CloudMessaging
as that is where the Intercom notification is handled as shown above. My CloudMessaging
class needed to a have a public constructor with 0 input fields to open when the notification is recieved. eg.
Gradle File
QUESTION
I am hoping someone can help me point my mistake here.
I am trying to send a firebase push notification through a lambda using the HTTP legacy endpoint
https://fcm.googleapis.com/fcm/send
I am following the guide from: https://craigrussell.io/2019/03/send-firebase-fcm-push-notification-from-aws-lambda/
Here is my code:
...ANSWER
Answered 2020-Jun-02 at 09:36I think the key point is that you use the http module. Actually, it works well when using https module on my side.
QUESTION
I've currently working with notifications and I've not succeed to get any notification from the Firebase FCM.
The podfile configuration is:
...ANSWER
Answered 2018-Dec-16 at 03:33Please check if you have activated Push Notifications in your Project Capabilities
Create Development APNs certificate and add it to Firebase Console Project Settings
In your App Delegate
QUESTION
I'm looking into converting some basic JS to Kotlin but I'm stuck on the new
keyword. I'm not sure how to convert the following JS to Kotlin
ANSWER
Answered 2017-Sep-16 at 08:59The require function in Kotlin is not the same as the require in NodeJS which is probably used in your JS code.
Whatever your FCM class is, just instantiate it without the new
keyword.
QUESTION
I am using Firebase FCM to send push notifications from an iOS device. The push notifications did work, until yesterday.
When I now send a push notification, everything shows successful, but nothing is received on the device.
If I send directly via a curl request, this is the response:
...ANSWER
Answered 2017-Nov-12 at 12:42Ok, fixed it. I disable firebase's message swizzling by adding this to my Info.plist: FirebaseAppDelegateProxyEnabled: NO
Further I removed all firebase messaging delegate methods. And generated my own APN token in didRegisterForRemoteNotificationsWithDeviceToken and setting Messaging.messaging().apnsToken = deviceToken in the didRegisterForRemoteNotificationsWithDeviceToken method once token generated.
QUESTION
I'm trying to use fcm-push to send a notification to Android. I'm just not sure how to build the flow.
I've successfully made Firebase send a notification to android via the firebase console.
just need an example flow for fcm-push. thanks.
...ANSWER
Answered 2018-Oct-11 at 08:37After much trial and error - I was able to come up with this. I did copy and then modify another example - unfortunately I don't know where the final example came from that I got to work (sorry). Here is one that is working, you can "import" into Node Red. Remember to change the AuthKey to your own.
QUESTION
I have tried Firebase notification with Laravel to send notification to IOS and Android devices.
But IOS device not received the notifications but Android devices working good.
So what is the issue in my script?
I have tried following,
...ANSWER
Answered 2018-Jan-07 at 22:57you need a 'notification' json block for iOS to respond
QUESTION
ANSWER
Answered 2018-Sep-05 at 13:11I used the firebase-admin package for sending the notifications (https://firebase.google.com/docs/cloud-messaging/admin/send-messages)
QUESTION
I am having issues with retrieving the correct FCM registration token in order to send push notifications to specific devices in an Ionic 3 app.
I have tried implementing examples such as the Ionic Native Push Plugin Example, the Angularfirebase implementation and the Push Notifications in Ionic example by Ankush Aggarwal. However, all the examples, when I try to retrieve the token, seem to give me the same registration token. When I try to use Firebase Cloud Messaging to send to a specific device (specifying the FCM registration token retrieved from each of these APIs giving me this token), the message fails.
However, I can send to entire devices. I have seen this post where the user seemed to have a similar issue as well as the solution of using topics as a workaround.
My testing process goes like this:
1.Remove the current platform and add the new updated platform using
...ANSWER
Answered 2018-Jul-19 at 18:27EDIT: It turns out, the phone-gap plugin does not support emulators. However, it did work for messages sent to all devices which is left unexplained. I theorize that it is because it sends a different type of payload that fits in line with what the plugin expects.
I found out my code works for a real device (courtesy of my friend) as well as having the topic method work too, so I am marking this as closed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fcm-push
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page