FCM Codelabs

Try these codelabs to learn through practical examples how FCM can help you send push notifications to your users.

Use the FCM HTTP v1 API with OAuth 2.0 access tokens

A mobile phone displaying a successful FCM message

This codelab guides you through setting up client and server-side code to send push notifications to an Android app using the FCM HTTP v1 API, focusing on credential generation.

Codelab

Your first multicast push message using FCM topics

A mobile phone displaying a successful FCM topic message

With FCM topics, you can send messages to specific groups of app instances, ideal for publicly available content like weather updates. Learn how to subscribe (and unsubscribe) users from your mobile app, send multicast push messages using topics, send messages to a combination of topics using topic conditions, and manage topic subscriptions on the server side, including bulk subscriptions and unsubscriptions.

Codelab

Send and receive notifications for a Flutter app using Firebase Cloud Messaging

A Flutter app receives a push notification

This codelab shows you how to set up and create a Flutter app, add FCM dependencies, and send both single and topic FCM messages.

Codelab

Use FCM and FIAM to send messages to users

A mobile app displaying an FCM and FIAM message

This codelab shows you how to add Firebase to your Android app, add FCM and FIAM dependencies, and send test FCM and FIAM messages.

Codelab

Add push notifications to an iOS app

An iOS app receiving an FCM message

This codelab guides you through integrating push notifications to a sample iOS app with FCM.

Codelab