Live demo

Mobile Push Demo: Send push notifications to an Android app

Try these · any order

Done: 0/3
  • To do: Launch Android Application

  • To do: Receive a Push Message (Data Payload) on Android

  • To do: Receive a Push Message (Notification Payload) in a Foreground Android app

Build it yourself

Add push notifications to your app

Follow the tutorial to add mobile push to your own app, or clone the Android receiver and run it with your own keys.

Tutorial

Mobile Push Notifications Tutorial

Connect your keyset to FCM and APNs, register device tokens on channels, and publish messages with push payloads.

GitHub

PubNubDevelopers/push-mobile-demo

The Android receiver app. Add your Firebase google-services.json and your PubNub subscribe key, build it in Android Studio, then publish a pn_fcm message to the push-demo channel.

git clone https://github.com/PubNubDevelopers/push-mobile-demo.git
View on GitHub