Firebase Cloud Messaging Push Notifications using the Android, PHP, MYSQL PART 1/2

Filip Vujovic · 178K views · 2016 · 12:09

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering how to send FCM push notifications to Android devices using PHP and MySQL, and as a walkthrough for storing device tokens on a server.

Recommended by 4 people across 4 different months, 2016 to 2017.

What it is

A 12-minute Android tutorial from Filip Vujovic, part 1 of 2, on setting up Firebase Cloud Messaging push notifications with an Android app, a PHP backend and a MySQL database. It covers the Firebase console, the firebase-messaging and OkHttp dependencies, and registering device tokens, with a linked GitHub project.

What people said

Recommends Faruk · 2016-07 · Stack Overflow · on “Chat App using GCM, PHP & MySQL”

GCM is now deprecated, try to migrate using Firebase Cloud Messaging, Follow these tutorial series : Send FCM using php part 1 [this video] Send FCM using php part 2 [LINK] And this is an example to create simple chat app : Chat App with Firebase Realtime Database part 1 [LINK] Chat App with Firebase Realtime Database part 2 [LINK]

Recommends Anuraj Jain · 2016-10 · Stack Overflow · on “Sending notifications to android application”

Yes you can use push notifications to notify users even when they didn't have app opened at that time. You can refer this to understand how to make a firebase push notifications enabled application - [LINK] Also you can refer firebase.google.com for more info Also you can refere YouTube for vedio tuto ... A simple example is here - [this video] I hope this will solve your problem

Recommends amus · 2017-01 · Stack Overflow · on “Why is my tokenid for android not being inserted into database?”

My tokenid is being generated on the phone. However it is not inserting into the database. Currently my phone is able to receive the notification from the firebase console. I am using firebase to do this. My register.php is working and it can post to DB. I am using Httpclient to send to the database. The register.php is the name of the file in my server. My database is being hosted on Uscloudlogin. The ontokenrefresh method in is not firing in MyFirebaseInstanceIDService.java in my android phone and emulator.I checked all the pages and it does not show any error.I followed the tutorial here [this video] How should i fix this? Please help. MyFirebaseInstanceIDService.java package **********; impor

Recommends Markus Biermeier · 2017-03 · Stack Overflow · on “In Android, sending notifications to android phones via code in Firebase”

it isn't Possible to solve your Problem with Firebase only. You have to create a MySQL Server and work with PHP. Maybe this Video from Filip Vujovic could help you. [this video]

Cites Gaurav Sarma · 2016-08 · Stack Overflow · on “Display Notification on Android Device using Firebase or any other way”

Firstly, you need to go to the firebase console and create an app. (For this you will need to login into your google account) and follow the steps provided here. [LINK] Once that is done you will need to add these services to your Manifest.xml file <service android:name=".firebase.FirebaseMessagingService"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT"/> </intent-filter> </service> <service android:name=".firebase.FirebaseInstanceIDService"> <intent-filter> <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/> </intent-filter> </service> FirebaseInstanceIdService.class public class FirebaseInstanceIDService extends FirebaseInstanceIdService { private sta

Cites user7303261 · 2017-04 · Stack Overflow · on “App stopped while calling registerToken”

I try to develop simple application (named Noti) with notifications using Firebase platform. I need to save the token into database using php script saved on my server. The issue is I receive message Noti has stopped after pushing the button. package com.example.jaroslavvystavel.noti; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.Toast; import com.google.firebase.iid.FirebaseInstanceId; import java.io.IOException; import okhttp3.FormBody; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; public class