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
Related
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.
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.
I'm new to android and php, I've been watching tutorials and implementing it. I'm making an app in which i want to send push notifications, I've come across many tutorials but some of them were only implemented on a single device where in my case i want to send it to all my app users(students who will be using my app). If there's any way to deliver messages via notification, I've made an app and in Live section, I want to send push notification inside an activity. How do i do it?
I've integrated firebase in my app but it doesn't support multiline messsage's. I'm fairly new to php, If there's any tutorial I could implement please suggest.
You can use Google Cloud Messaging as well as Fire base Cloud messaging
i am sure to help you this link for multiple devices
Google Cloud Messaging
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
Firebase Cloud Messaging
http://www.androidhive.info/2016/06/android-firebase-integrate-analytics/
I am new with IBM Bluemix and I want to add PHP code for sending push notifications on both iOS and Android devices.
My app is built with the Xamarin platform for both type of mobile devices.
The backend is created in PHP with the Codeigneter framework.
I see in the Dashboard there is direct user interface for sending a push in Bluemix, but I want to send a Push on run-time for example: some user sending a friend request and the other user automatically receiving a push notification.
There is not a PHP SDK library, but you could accomplish your behavior by checking out the Push Notifications Swagger documentation:
https://mobile.ng.bluemix.net/imfpushrestapidocs/
First you would register your mobile app so it receives push notifications (using the Android or iOS Client SDKs available here). Then you could have your backend send the push notification to a specific device on the event that a friend request is sent by using the REST API (as outlined in the Swagger docs).
I currently run an app in php zend framework that contains a real chat using node.js and socket.io, the chat is working really good, but i need to create a service to send push notifications using the pushwoosh technology, is there any way to send the push messages in the node.js server? or i have mandatorily to create a service in zend framework, considerating that chat is running in an mobile app too, and the messages should arrive even when the app is closed.
thanks for your help.
Sending push notifications on mobile devices cannot be done stand-alone and you must take in consideration that you have to rely on third-party services.
The concept is that you don't directly send push notification to your application, but you send the request to a third party service asking to send the push notification to your registered application.
For example, these are the steps you will go through to send a push notification to an IOS application:
An app enables push notifications. The user has to confirm that he wishes to receive these notifications.
The app receives a “device token”. You can think of the device token as the address that push notifications will be sent to.
The app sends the device token to your server.
When something of interest to your app happens, the server sends a push notification to the Apple Push Notification Service, or APNS for short.
APNS sends the push notification to the user’s device.
(reference: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1)
So it's not as easy as you wish to. You won't directly send the push notification, but you will ask to apple in case of IOS or to Google's server in case of android to send it.
In most case, you will have to register as developer on their dev centers and get all the tokens and certification they ask.