This project is an Android application that utilizes Google Cloud Messaging (GCM) for push notifications.
- Registering and managing devices for push notifications using GCM.
- Sending push notifications from a server to registered devices.
- Handling incoming push notifications on the Android app.
Before running the project, ensure that you have the following:
- Android Studio (version X.X or higher) installed.
- A Google Cloud project with GCM enabled.
- API credentials (server key) for your project.
- Clone the repository or download the project ZIP file.
- Open the project in Android Studio.
- Replace
google-services.json
file with your own configuration file obtained from the Google Cloud Console. - Build and run the application on an Android device or emulator.
To configure the project, follow these steps:
- Replace
GCM_SENDER_ID
inManifest.xml
with your own GCM sender ID. - Configure your server-side code to send push notifications using the appropriate GCM server key.
- Launch the app on an Android device or emulator.
- Allow the necessary permissions for push notifications.
- Register the device for push notifications by providing the necessary information.
- Your server can now send push notifications to the registered device(s).
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.