push_notification 1.1.0 copy "push_notification: ^1.1.0" to clipboard
push_notification: ^1.1.0 copied to clipboard

PlatformAndroidiOS
outdated

Library for implementing push notifications. The module contains the main work with push notifications.

Push Notification #

Build Status Coverage Status Pub Version Pub Likes Pub popularity Flutter Platform

This package is part of the SurfGear toolkit made by Surf.

About #

Library for implementing push notifications. The module contains the main work with push notifications.

Usage #

An example of using the library can be found in example.

  • Create a notification data type through inheritance NotificationPayload

  • Create a strategy for handling notifications through inheritance PushHandleStrategy

  • Create a factory of strategies through inheritance PushHandleStrategyFactory

  • To receive notifications, you need to create an instance. MessagingService

  • To display notifications, you need to create an instance NotificationController.

  • And pass created instances when creating PushHandler that will create the strategy using the factory.

  • In the notification there should be a field: click_action: FLUTTER_NOTIFICATION_CLICK

  • in manifest in <activity> you need to add intent filter:

<intent-filter>
      <action android:name="FLUTTER_NOTIFICATION_CLICK" />
      <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

Installation #

Add push_notification to your pubspec.yaml file:

dependencies:
  push_notification: ^1.0.0

You can use both stable and dev versions of the package listed above in the badges bar.

Changelog #

All notable changes to this project will be documented in this file.

Issues #

For issues, file directly in the main SurfGear repo.

Contribute #

If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our contribution guide first and send us your pull request.

Your PRs are always welcome.

How to reach us #

Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.

Telegram

License #

Apache License, Version 2.0

58
likes
130
points
33
downloads

Publisher

verified publishersurf.ru

Weekly Downloads

Library for implementing push notifications. The module contains the main work with push notifications.

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, rxdart

More

Packages that depend on push_notification

Packages that implement push_notification