搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫woosignal/wp-notify-flutter

wp-notify-flutter

使用 Firebase Cloud Messaging 從 WordPress 發送推送通知。此套件會自動將您的 FCM 憑證推送到 WordPress 以開始發送通知。功能包括將 WordPress 使用者指派給 FCM 憑證,以及向 iOS 和 Android 發送基本推送通知。

wp-notify-flutter 專案封面
星標
5
分支
3
最近推送(UTC)
2025年12月13日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

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.

WooSignal GitHub avatar
GitHub 作者

WooSignal ↗

App templates for WooCommerce stores! Connect in minutes, ready made app templates for the App Store/Play Store, get started today for free. #woocommerce

語言Dart

分類

此儲存庫發佈的套件

使用的依賴

依賴清單 4 項

  • nylo_support^6.38.1
  • pretty_dio_logger^1.4.0
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗