how to send mobile push notification using google firebase - firebase

I'm using Moodle framework and I want to send message and notification through firebase any ideas about how to reach that ?

I haven't used it myself so can't give you instructions
But I believe you can use AirNotifier to push to Firebase
Some documentation from Moodle here
https://docs.moodle.org/400/en/Moodle_app_notifications
Github for AirNotifier here
https://github.com/dcai/airnotifier/#readme

Related

is there a way to add registrationids for FCM topics using firebase console

I want to send notifications to a set of users whose details I have in a CSV, in my research, I've found that using topics is a way to go about this.
i want to accomplish what this link is doing but using firebase console. is there a way to import registration ids and group them in the console itself?
There's no way to register an FCM token for a topic in the Firebase console.
I usually have a small Node.js script locally that uses the Admin SDK to register a token to a topic, which isn't much more than (for Node.js):
getMessaging().subscribeToTopic(['my_token'], '/topics/mytopic')

Push notification service without showing actual notification in expo

Is it possible to use Expo push notifications (https://docs.expo.io/versions/latest/guides/push-notifications/) without showing actual notification to user?
I want to use Firebase Cloud Messaging to notify user about change in backend and this would be perfect solution that won't require me to eject Expo and use ExpoKit
I couldn't find any info in documentation, but maybe there is some undocumented solution
If it's not possible then do you see another solution that won't require ejecting or it's unavoidable?
I recommend you to use Expo"s backgroundFetch or taskManeger.
It is more beautiful solution, becase user sometimes deny push notification

Receive Custom FCM In Unity

I integrated Firebase Cloud Messaging with Unity successfully and I can receive usual messages when I send them from Firebase Console, but I need some extra things.
1 - How can I send my notification as a URL? I mean I want that when user touches the notification it opens the URL that I put in the value in FireBase Console.
2 - How I can send and show a picture and a custom icon in the notification?
Unfortunately, I can't find anything on the internet and official documents confused me.
Is there any way to gain these request only with FireBase SDK?
Thank you.
You have to handle all the messages from FCM manually to get all those features you are looking for. I mean you got the general implementation all the stuff, but you need the unique one. All the notification display settings and notification click handlers have to be implemented on the Android native side.
Probably you will find some interesting FCM asset in the Asset Store with nice notifications customization, not sure. But I would recommend you to surf the Asset Store, maybe there will be some useful packages.

Twilio Chat push notifications

We are using the twilio-chat#1.0.4 JS SDK in our react-native app.
We're using react-native-push-notification#3.0.0 to handle the notifications.
The pushes are enabled and can see them coming through from twilio.
But I can't figure out how to turn on alerts.
I can (and currently do) issue a local notification when the app is in the background but we'd like to see the alert even if the app is closed.
How can we configure the push notifications to include an alert.
I had similar needs but the only difference in my case am using twilio native chat wrapper instead of the JS sdk.
To enable have push notifications working I ended up forking https://github.com/zo0r/react-native-push-notification and customizing it to support twilio push notifications which have custom payload than what you might be used to.
Check https://github.com/zo0r/react-native-push-notification/compare/master...Kabangi:master for the changes I made you might get some ideas from it.
Twilio developer evangelist here.
Twilio Chat JS 1.1.1 was recently released and actually contains methods for dealing with push notifications.
Also, did you follow the instructions for React Native's PushNotificationIOS that explain how to setup your iOS application for receiving push notifications?

push notifications ionic 2 for android

I need to configure push notifications for an Ionic 2 application for android devices.
I read here that in order to do that you need to login to Firebase console, create a project and so on...
So my question is, do I really need to log into Firebase to do this? I'm not using firebase in my app, so I donĀ“t get why I need to create a project to get a SERVER_ID and SERVER_KEY. What if I delete that project in Firebase afterwards, then my push notifications will stop working?
Thanks
Yes, you do need an account to use Firebase Cloud Messaging because you'll need a key to send pushs.
You need the key to use device-to-device push via HTTP and you need a project to send notifications to a group or topics.
I don't think that there's a way to use push without creating an account in any service.
You don't need a Firebase account.
You can use azure notifications hub or amazon aws or google cloud service, ionic cloud, etc.
Any cloud services that provides a notification hub which is basically a server for receiving and redistributing to the registered parties to the specific platforms.
Please note that some of these are specifically mobile oriented meaning you wont have to write any server side code and others aren't.

Resources