How to send Push Notification (cloud messaging) from Firebase console to your Android App?

preview_player
Показать описание
This video shows simple steps to create an Android App and connect it with the Firebase project.

Then it shows how one can use Firebase cloud messaging service to send the push notification on the phones which have this Android App installed.

Complete source code and other details can be found in the below link:

However, the main Java code is copied below also for reference:

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {

startService(intentBackgroundService);
}
}

public class FirebasePushNotificationClass extends FirebaseMessagingService {

public FirebasePushNotificationClass() {
super();
}

@Override
}
}
Рекомендации по теме
Комментарии
Автор

Great job ! Bro you saved my time~~
Thanks for code too

User-yzmr
Автор

Sir how to subscribe all existing users to a topic using firebase console

shahidwani
Автор

How to add deep linking for the notification?

evelynimmanuel
Автор

the app is running but no notofication

utkarshsingh
Автор

Notifications not received although build is successful

akashkakkad
Автор

How to recieve notification when the app is killed.

dhanashreetambe