パッケージ、リポジトリ、アプリカテゴリを検索

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 ↗