pushe 1.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 88

Pushe flutter #

A plugin to use Pushe sdk in Flutter framework.

Run the sample #

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

Installation #

Add the plugin to pubspec.yaml:

  pushe: ^version

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="co.ronash.pushe.token"
           android:value="PUSHE_12345678" />

Add the code snippets #

In your main.dart:

import 'package:pushe/pushe.dart';

More Info #

For more details, visit HomePage docs or the Wiki

1.0.1 #

  • Fix problem with AndroidX projects.

  • Changed example package name.

1.0.0 #

  • Release ready version.

  • New listener API for notification callbacks.

  • Removed extra files and APIs.

  • Remove extra Fcm service. Firebase and other services can now be added and supported natively.

  • Minor improvements and bug fixes.

0.9.1 #

  • Recreating notification callbacks. Callbacks will return actual notification objects now.

  • From now on, Plugin can be used along with Firebase messaging plugin.

  • Minor improvements and bug fixes.

0.2.1 #

  • Added better styled callbacks.

  • Minor improvements.

0.0.2 #

  • Bug fixed on notification listeners not getting called.

  • Fixed a little bug in example app.

  • Listeners of notification callbacks are working.

  • Added Release offline AAR package.

  • More comments in plugin.

0.0.1 #

  • Pushe basic commands.

  • Support for Android OS.

  • Notification content callback.

Note: Callbacks will be passed when flutter is running. So when the app is closed, notifications will not call the callback methods (They actually will, but the flutter doesn't get it).


Pushe flutter sample #

Demonstrates how to use the pushe plugin.

Hint #

The app credentials belongs to Demo account at Pushe console. Go to Pushe console and login to demo. You can send notifications to this app.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  pushe: ^1.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:pushe/pushe.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 18, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/pushe.dart.

Run flutter format to format lib/pushe.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies