https://github.com/codenoid/flutter-centrifugo-push-notification
Demo of flutter push notification using centrifugo as messaging server
https://github.com/codenoid/flutter-centrifugo-push-notification
centrifugo fcm fcm-messaging flutter push-notifications
Last synced: about 2 months ago
JSON representation
Demo of flutter push notification using centrifugo as messaging server
- Host: GitHub
- URL: https://github.com/codenoid/flutter-centrifugo-push-notification
- Owner: codenoid
- Created: 2020-03-30T03:46:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-30T09:21:05.000Z (about 6 years ago)
- Last Synced: 2025-05-29T10:14:05.878Z (about 1 year ago)
- Topics: centrifugo, fcm, fcm-messaging, flutter, push-notifications
- Language: Dart
- Size: 54.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flutter + Centrifugo Push Notification Demo
Code are copied from :
1. https://github.com/centrifugal/centrifuge-dart/blob/master/example/flutter_app/lib/main.dart
2. https://github.com/nitishk72/flutter_app_local_notification/blob/master/lib/main.dart
## Dependencies
1. Centrifugo [Install here](https://github.com/centrifugal/centrifugo#how-to-install)
2. Golang [Install here](https://golang.org/dl/)
## How to run ?
1. git clone https://github.com/codenoid/flutter-centrifugo-push-notification
2. run centrifugo with config `centrifugo --client_insecure --config=centrifugo-config.json`
3. Customize centrifugo url ([flutter](https://github.com/codenoid/flutter-centrifugo-push-notification/blob/40e8f3655e5a29d683ce5041e2c8ff0c44fc8cbc/fcpn_mobile/lib/main.dart#L48) and [fcpn_server](https://github.com/codenoid/flutter-centrifugo-push-notification/blob/master/fcpn_server/fcpn-server.go#L21))
4. cd to `fcpn_server` then `go run .`
5. run your flutter app, Connect then subscribe
6. send your notification via fcpn_server (point 4)
7. congrats, you have push notification without FCM