# flutter_gcm **Repository Path**: mirrors_chromium_googlesource/flutter_gcm ## Basic Information - **Project Name**: flutter_gcm - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-19 - **Last Updated**: 2025-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flutter_gcm A Flutter service for [Cloud Messaging](https://developers.google.com/cloud-messaging/). ## Running the sample app. 1. The package assumes you have this directory structure (each bullet is a sibling): * flutter/ (https://github.com/flutter/flutter) * engine/src/third_party/gcm/ (https://github.com/flutter/flutter_gcm) 2. Ensure your environment is set up for building Flutter apps as described [here](https://flutter.io/getting-started/). 3. Follow these steps: ``` cd engine/src/third_party/gcm/examples/simple flutter start ``` ## Using GCM in your own Flutter app. 1. Add the following snippet to your app's `pubspec.yaml`: ``` dependencies: gcm: path: path/to/flutter_gcm/packages/gcm ``` 2. Add the following snippet to your app's `flutter.yaml`: ``` services: - gcm ``` 3. Register GCM in your .dart code using the sender ID provided [here](https://developers.google.com/cloud-messaging): ``` String token = await gcm.registerGcmService(SENDER_ID, onMessageReceived); gcm.subscribeTopics(token, ['global']); ``` See [gcm.mojom](gcm.mojom) for the full API. ## Building new .jar or .dylib files See [CONTRIBUTING.md](CONTRIBUTING.md).