This app listens to all notifications and forwards them to a web endpoint in JSON format using a POST method. The JSON payload includes the following fields: appName
, notificationTitle
, notificationText
, timestamp
, and notificationId
.
- Listens to all notifications
- Forwards notifications to a web endpoint in JSON format
- Provides a settings page to configure which apps should forward notifications
- Implements a retry mechanism for unreachable web endpoints
- Saves notifications locally when the web endpoint is unreachable
- Syncs notifications in the background when the endpoint becomes available
- Requests notification access permission from the user
- Uses Moshi for JSON handling
- Uses JobScheduler or WorkManager for efficient background processing
- Clone the repository:
git clone https://github.com/tspascoal/Android.Notifications.Forwarder.git
- Open the project in Android Studio.
- Build the project using Gradle.
- Run the app on an Android device or emulator.
- Open the app and navigate to the settings page.
- Use the search bar to quickly find specific apps.
- Check or uncheck the apps you want to forward notifications from.
- Input the web endpoint URL in the provided field.
- Save the settings and return to the main screen.