An open API service indexing awesome lists of open source software.

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

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