Pushe flutter

A plugin to use Pushe sdk in Flutter framework.

Run the sample

Run: git clone https://github.com/pusheco/pushe-flutter.git
The go to example: cd example
And run the example on a connected device: flutter run


Add the plugin to pubspec.yaml:

  pushe: ^latest

Then run flutter packages get to sync the libraries.

Set up credentials

Go to https://console.pushe.co , create an application with the same package name and get the manifest tag. Add the manifest tag in the Application tag. It should be something like this:

<meta-data android:name="pushe_token"
           android:value="PUSHE_TOKEN" />

Run the project after and you should be able to see your device in console after a short time.

Add the code snippets

In your main.dart:

import 'package:pushe_flutter/pushe.dart';

More Info

For more details, visit HomePage docs