Demonstration of the Pusher Beams client SDK for Android
This is a supplemental project for the article Pusher Beams client API demo for Android.
To set up this demo app, perform the following tasks:
- Clone the GitHub repo
- Create a Beams instance and configure FCM. You can follow the quick start guide. The Android package name is
com.example.beamsapidemo
. Enter the FCM Server Key and download thegoogle-service.json
file. At that point you can quit the quick start wizard. Go to your Beams dashboard, open your new instance, and go to the Credentials tab. You will find your Instance ID and Secret Key there. - In the cloned repo, replace
app/google-services.json
with the one you downloaded from the FCM setup. - In the cloned repo’s
MainActivity.kt
file, set theINSTANCE_ID
constant to your Instance ID. - Run the app on the Android emulator.