Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipekoga/android-live-notification
Android app that demonstrates live notifications using FCM
https://github.com/felipekoga/android-live-notification
android firebase-cloud-messaging live-activities remote-views
Last synced: 18 days ago
JSON representation
Android app that demonstrates live notifications using FCM
- Host: GitHub
- URL: https://github.com/felipekoga/android-live-notification
- Owner: FelipeKoga
- Created: 2023-11-14T19:24:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-19T18:28:01.000Z (12 months ago)
- Last Synced: 2025-01-20T00:50:31.067Z (20 days ago)
- Topics: android, firebase-cloud-messaging, live-activities, remote-views
- Language: Kotlin
- Homepage:
- Size: 844 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android Live Notification
## Description
Android app that demonstrates the implementation of live notifications using Firebase Cloud Messaging (FCM).
This project aims to replicate the iOS Live Activities feature using Android RemoteViews and FCM.## Demo
![Live Notification Demo](https://github.com/FelipeKoga/android-live-notification/blob/main/assets/demo.gif)## Setup
### Prerequisites
- Firebase account.
- Android Studio installed.
- Node.js installed.### Configuration
1. **Firebase Setup**
- Create a new project in your Firebase Console.
- Add an Android app to your Firebase project and follow the setup instructions.2. **Project Integration**
- Clone the `android-live-notification` repository.
- Open the cloned project in Android Studio.3. **Add Firebase Configuration File**
- Download the `google-services.json` file from your Firebase project.
- Place this file in the `app/` directory of your Android Studio project.4. **Generate and Place Service Account Key**
- In the Firebase Console, navigate to your project's settings.
- Go to the 'Service Accounts' tab.
- Click on 'Generate New Private Key', then download and save the `serviceAccountKey.json` file.
- Place this key in the `fcm-script` folder within your project directory.5. **Install Node Dependencies**
- Navigate to the `fcm-script` folder in your project directory.
- Run `npm install` to install the required Node.js dependencies.6. **Build and Run**
- Build the project in Android Studio.
- Run the app on an emulator or physical device.
7. **Execute Push Notification Script**
- Run the script with `node index.js` to send the push notification.