How to send notifications to app users? - php

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/

Related

Wants to make push notification app like WhatsApp

I want to make an App with push notifications, which will not stop in Android phone, exactly like in WhatsApp.
I can easily make a php API for notification on my xyz web hosting to send push notifications to my application.
But I don't know which methodology to use. I am a beginner in Android App development. I want to make the App using Android Studio.
I appreciated if you could share any example source code.
In this case using google fire base is a good choice.search about it.

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

Azure send Push Notification to Multiple Devices/Broadcast

I used AWS SNS to send notification on multiple devices, in AWS SNS i created some Topics and Subscribe Endpoint ARN (user device in AWS) to Topic and Publish notification on Topic to send notification to all subscribers by PHP.
Now i am switching to Azure, and want to implement same application in PHP, after some research i find out this link:
https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-php-how-to-use-topics-subscriptions
Is there any way to implement my requirement without using Service Bus. Also dosen't understand Why Topic and Subscription are in Service Bus and unable to use it directly. Or is there some reason to use it via Service Bus.
I am not familiar with AWS SNS, but I think what you're looking for is Notification Hubs on Azure.
Azure Notification Hubs provide an easy-to-use, multi-platform,
scaled-out push engine. With a single cross-platform API call, you can
easily send targeted and personalized push notifications to any mobile
platform from any cloud or on-premises backend.
You can check out the official documentation on how to use Notification Hubs from PHP, or refer to this sample implementation of a REST wrapper for sending notifications using the REST APIs of Notification Hubs from a PHP back-end.

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