如何向应用用户发送通知?

如何向应用用户发送通知?

问题描述:

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.

我是android和php的新手,我一直在观看教程并实现它。 我正在制作一个我想要发送推送通知的应用程序,我遇到了很多教程,但其中一些仅在单个设备上实现,在我的情况下我想将它发送给我的所有应用程序用户(学生们 将使用我的应用程序)。 如果有任何方式通过通知传递消息,我已经制作了一个应用程序,在实时部分,我想在活动中发送推送通知。 我该怎么做? 我已经在我的应用程序中集成了firebase,但它不支持多行消息。 我对php很新,如果有任何我可以实现的教程请建议。 p> div>

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/