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

Latest commit

 

History

History
48 lines (30 loc) · 2.37 KB

File metadata and controls

48 lines (30 loc) · 2.37 KB

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