Notification on Browser with Firebase - php

I use FCM for mobile app. Now my project requires to deploy it into web-base application. But FCM just support Chrome-app only. Is there any solution for pushing notification from FCM to browser?

maybe you're looking for Adding Push Notifications to a Web App, it's FCM too.
works with the Push API of HTML5 and uses ServiceWorkers
https://developers.google.com/web/fundamentals/getting-started/codelabs/push-notifications/

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.

Receive duplicate push notification in android device in phonegap build app using pushwoosh plugin

My android app is developed using phonegap build. I am integrating pushwoosh plugin for receiving push notifications. In serverside push messages are sending with fcm ($url ='https://fcm.googleapis.com/fcm/send';) using curl. But in app I am receiving duplicate message. How this happen? Please help me.
The plugin used in congig.xml is
<gap:plugin name="pushwoosh-cordova-plugin#7.0.8" source="npm"/>

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

IBM Bluemix push notification through PHP code

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).

How to build an android Push Notification server in PHP

I am developing an application and in that application I need to implement push notification.
Can anyone suggest me how to do develop the server in PHP (Json, Zend Framework if possible) and provide me a good tutorial on push notification?
"Android Cloud to Device Messaging (C2DM) is deprecated". Its new version is Google Cloud Messaging (GCM). There is plenty of information and source code examples on developer.android.com.
Here is another useful post for Android Push Notifications.
Whenever you want to send message to an android device your Server contacts -> Google Server Contacts -> android device .
So you integrate your ZF application with google c2d api . Here you can find one such implementation of this type of integration with ZF
http://blog.digitalstruct.com/2010/11/21/android-c2dm-with-php-and-zend-framework/

Categories