Search packages, repositories and app categories

Package detailsv2.0.5

wp_notify

Send push notification from WordPress using Firebase Cloud Messaging. This package automatically pushes your FCM token to WordPress to start sending notifications. Features include the ability to assign a WordPress user with an FCM token and send push notifications to IOS/Android devices using our API in WordPress.

AndroidiOSmacOS
30-day downloads
41
Likes
23
Pub points
130

Install package

flutter pub add wp_notify

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The wp_notify package enables Flutter apps to receive push notifications from WordPress via Firebase Cloud Messaging (FCM). It automatically registers the device's FCM token with WordPress, allowing seamless two-way communication. Developers can assign FCM tokens to WordPress users and send targeted notifications to Android and iOS devices using the WordPress API. The package supports cross-platform deployment on Android, iOS, and macOS, making it ideal for integrating native push functionality into WordPress-powered apps. It simplifies the setup process by handling token synchronization and notification delivery.

Use cases

  • Sending app notifications from WordPress admin
  • User-specific push alerts in Flutter apps
  • Real-time updates for mobile clients
  • Cross-platform notification delivery
  • Automated FCM token registration

Key features

  • Automatic FCM token sync with WordPress
  • Support for Android and iOS devices
  • Integration with WordPress REST API
  • Token assignment per WordPress user
  • Cross-platform compatibility (Android, iOS, macOS)

Suitable for

  • WordPress-based mobile apps
  • Apps requiring real-time notifications
  • Developers using Firebase with WordPress
  • Projects needing automated token management
  • Multi-device notification systems

Considerations

  • Requires WordPress plugin for backend support
  • Needs proper FCM configuration in Firebase
  • Backend API must be accessible
  • iOS requires additional setup for background notifications
  • Network connectivity required for token registration

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

WP Notify for Flutter - Send push notifications from WordPress using Firebase Cloud Messaging

Official WooSignal package

API features:

Notifications

  • Automatically sends the device token to your WordPress site for a given user/device
  • You can assign a token to a WordPress user
  • Send notifications from WordPress with our API

To use this Flutter package you must have the WP Notify Plugin installed first on your WordPress site, you can download it via the WooSignal website.

Getting Started

In your flutter project add the dependency:

dependencies:
  ...
  wp_notify: ^2.0.5
Usage example

Import wp_notify.dart

import 'package:wp_notify/wp_notify.dart';
Example using WP Notify
import 'package:wp_notify/wp_notify.dart';
...

void main() {

WPNotifyAPI.instance.initWith(baseUrl: "https://mysite.com");

...
Available API Requests
WordPress - wpNotifyStoreToken
  • Used for storing an FCM token
WPStoreTokenResponse wpStoreTokenResponse;
try {
    wpStoreTokenResponse = WPNotifyAPI.instance.api((request) => request.wpNotifyStoreToken(token: token, userId: usersId));
} on Exception catch (e) {
    print(e);
}
WordPress - Updating a tokens status (e.g. if you want to turn off notifications)
  • Used for updating the status of an FCM token
WPUpdateTokenResponse wpUpdateTokenResponse;
try {
     wpUpdateTokenResponse = WPNotifyAPI.instance.api((request) => request.wpNotifyUpdateToken(token: token, status: true));
} on Exception catch (e) {
    print(e);
}

For help getting started with WooSignal, view our online documentation, which offers a more detailed guide.

Usage

To use this plugin, add wp_notify as a dependency in your pubspec.yaml file.

Note

Install WordPress plugin "WP Notify" 2.0.x or later for version 2.0.0

Disclaimer: This plugin is not affiliated with or supported by Automattic, Inc. All logos and trademarks are the property of their respective owners.

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.