Showing notification using phpmyadmin - php

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

Related

Give Notification To Android Application When MySQL Database's Table Has New Entry

So, I am a Android Developer and now a day working with MySQL Database. But during that my requirement is to Give Notification to Android application user when there is any Newer entry into the table.
Like when any raw is added into the table if it related to that particular user than if provided the notification from android application.
Now, I know that track of newly inserted raw is created by the Database/Table Triggers but I don't know how to use triggers with Android application.
Till Now I had worked with Android+ Php + MySQL combinations.
Note : - I am working with android studio with java.
Thank You for support
The only option available is something alike server-side FCM Firebase Cloud Messaging.
So that the PHP method, which inserts the record, also will push the notification. You can try it with the API Explorer, so that you'll reliably know, how the cURL request has to look alike. Any push-notification service should work, while one can post notification messages on the server-side.
Alternatively, (unless depending on SQL-specific features) you could use the Firebase Realtime Database, which supports notification about new records by default - and this would subsequently permit sending a local notification and/or updating an adapter.

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.

How to send android notification wthout using firebase only communication between app, php and mysql

Help here does any one knows how to make an android application that automatically receives notification when it checks in mysql database and finds that there is a new entry in the table without using firebase the communication is only between the android app,PHP and mysql
use GCM or other library for that

How to send push notification by using php to android

I'm trying to send push notification to my app from PHP server.
but I don't understand certain thing like what I need to make PHP server.
I have my app. I configured every thing.
I have created my app in phonegap.
I have API KEY, Project NO., and Registration Key.
I have follow this articles:
Google Cloud Messaging GCM for Android and Push Notifications
Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL
Push notifications with PhoneGap and Android
but still not able to create php page to send notifications.
I can send notification using pushbots.
but I want to create my own PHP page to send Push notification.
Please help me with this.
I will really appreciate your help.
Thanks in advance
For a good example of PHP code that send Android push notification look at this gist.
In order to have always the updated version of registration tokens, you should write another php page that receive tokens from devices and write them in a db. Then you can get these tokens before sending push notifications.

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