Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

tscholze/java-android-things-firebase-pager

Repository files navigation

Firebase Cloud Messaging / Android Things Pager

My sample of an Android Things app, that will display a Google Firebase Cloud Messaging (FCM) notification on an alphanumeric segment display (Rainbow HAT) as scrolling text (marquee). Written by a guy that's not that into Android development and pattern, yet.

Prerequisites

  • Android Things Developer Preivrew 6 or higher
  • Raspberry Pi Rainbow HAT
  • Firebase account

Scheme

A FCM notification will be send to the registered Android Things app. The app receive it and will route the contained information via internal intent broadcasts to the MainActivity. The activity will display the text on the display by using Runnables.

Scheme

How to run

  • Install Android Things on your Raspberry Pi
  • Install and test the Rainbow HAT
  • Enable the FCM feature on your Firebase account and embedd the google-services.json file into the project
  • Deploy app to Raspberry Pi
  • Copy FCM token (Log output) or copy the packge identifer
  • Go to the FCM console and send a notification
  • If everything works as expected: The notications body text will be displayed on the segment display

Publications

Contributing

This is a one-time-example, there will be no further development (maybe platform verison bumps fixes). That means, no contribution is necessary.

Authors

Just me, Tobi.

License

This project is licensed under the MIT License - see the LICENSE file for details. Dependencies or assets maybe licensed differently.

Acknowledgments

About

Sample Android Things app that displays a Firebase Cloud Messaging notification on a alphanumeric segment control (Rainbow HAT)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages