Receive Firebase Notification with Firebase Token - php

Can I get firebase notifications without a phone.
I know firebase Instance Id, Firebase Token and Device ID. Cant I receive all notifications with PHP, node.js etc.
I want pull Firebase Notifications.

Firebase Cloud Messaging only supports delivery of messages to iOS, Android and Web devices. There are no public APIs/SDKs for delivery to other devices/platforms through Firebase Cloud Messaging.
For the platforms you mention, consider using one of Firebase's databases (Realtime Database, Cloud Firestore) both of which allow delivering of realtime notifications when the data in the database changes.

Related

How to send push notification from Firebase to web app on iOS device?

everyone, I would like to ask how to send push notification from Firebase Cloud Messaging (FCM) to web app on iOS device? I am having the problem on receiving the push notification from FCM when I turned on the web app on iOS device. However, there is no issue to receive the push notification from FCM when the web app had been turned on on the android device.
The following programming languages that I am using:
front-end for web app - HTML, CSS, JavaScript
back-end for web server - PHP Laravel, MySQL
way to push notification - Firebase Cloud Messaging (FCM)
Should I subscribe the membership for Apple developer in order to get the push notification from FCM on iOS device?
Thanks everyone!
Push notifications don't work for IOS with web apps only native apps can do this. You could use a firebase cloud function to message the user phone number though.

Send FCM message to specific Google user without need to install an app?

I'm doing a tiny personal project involving an Arduino and a PHP backend. I want to send a push notification from the PHP backend to my Android phone using Firebase Cloud Messaging. This question is specifically about FCM - I don't want to use any other services like Blynk, etc. I also do not want to send the notification directly from the Arduino, but rather from the PHP backend.
Can I send a FCM notification to my phone without having to create an app to receive it? I'm logged in with a Google/Gmail account on the phone, and I have no need to target any other users than myself.
Can I send a FCM notification to my phone without having to create an app to receive it?
No, this is not possible. It would open users up to some pretty hefty abuse.
In order to receive your notifications, the user must have your app installed.
Mind you, this can be a pretty minimal app, since the default implementation of FCM already displays notifications to the user if the app is not active. So really all you have to do is create an empty app that includes the Firebase Cloud Messaging SDK.

Firebase Cloud Messaging API

We are using Firebase Cloud Messaging for iOS and Android. Just wondering if its possible to create a web application that has a form whereby we can send push notifications to both platforms at once - assume we know the topics to send to. (maybe using POST/cURL requests)
yes you can send the push notification in some of the web browsers using firebase integrations (web push notifications)
please go through the following link
https://developers.google.com/web/fundamentals/push-notifications/
https://www.w3.org/TR/push-api/
https://firebase.google.com/docs/cloud-messaging/js/client

Showing notification using phpmyadmin

I have made forum app (android) it uses web services to send/retrieve data from database (phpmyadmin). Now when a new question is added then everyone using the app should get a headsup notification that there is a new question. After searching every where I found that FCM should be used but I'm not getting how to use Firebase with my existing database because I want all the data to be stored in my database and also show notification.
You can pick what Firebase features you want to use. So if you use Firebase Cloud Messaging, you don't have to use the Firebase Database. You can just stick to your own database and call out to FCM from your PHP code.
Some examples of calling FCM:
How can I send a Firebase Cloud Messaging notification without use the Firebase Console?
Send FCM messages from server side to android device
many of the results in this list

PHP send data directly to GCM without register_ids of the devices?

Is it possible to send data from PHP server to all devices registered in the Google Cloud Messaging app without registering the ids of the devices in the PHP server db?
If not in PHP, is there other way to achieve this?
And one more question..
Which technology should I use to connect PHP Server with the GCM backend for manipulating a datastructure (within Cloud Datastore if necesary) that Android/IOS clients could subscribe to in order to receive PushNotification?

Categories