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

パッケージ詳細v2.0.5

wp_notify

Firebase Cloud Messaging を使用して WordPress からプッシュ通知を送信します。このパッケージは、FCM トークンを自動的に WordPress にプッシュし、通知の送信を開始します。WordPress ユーザーに FCM トークンを割り当て、WordPress の API を使用して iOS/Android デバイスにプッシュ通知を送信する機能も含まれます。

AndroidiOSmacOS
30日間ダウンロード
41
いいね数
23
Pub ポイント
130

パッケージをインストール

flutter pub add wp_notify

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

wp_notify パッケージは、Flutter アプリが Firebase Cloud Messaging (FCM) を介して WordPress からプッシュ通知を受信できるようにします。デバイスの FCM トークンを WordPress に自動登録し、シームレスな双方向通信を可能にします。開発者は FCM トークンを WordPress ユーザーに関連付け、WordPress API を使って Android および iOS デバイスにターゲット通知を送信できます。このパッケージは、Android、iOS、macOS でのクロスプラットフォーム展開をサポートしており、WordPress ベースのアプリにネイティブなプッシュ機能を統合するのに最適です。トークン同期と通知配信を処理することで、セットアッププロセスを簡素化しています。

用途

  • WordPress管理画面からアプリ通知を送信する
  • Flutter アプリにおけるユーザー固有のプッシュアラート
  • モバイルクライアント向けのリアルタイム更新
  • クロスプラットフォーム通知配信
  • 自動 FCM トークン登録

主な機能

  • WordPress との自動 FCM トークン同期
  • AndroidおよびiOSデバイスのサポート
  • WordPress REST API との統合
  • WordPress ユーザーごとのトークン割り当て
  • クロスプラットフォーム互換性(Android、iOS、macOS)

適している対象

  • WordPressベースのモバイルアプリ
  • リアルタイム通知が必要なアプリ
  • Firebase を使用する WordPress デベロッパー
  • 自動トークン管理が必要なプロジェクト
  • マルチデバイス通知システム

注意事項

  • バックエンドサポートにはWordPressプラグインが必要です
  • Firebaseで適切なFCM設定が必要です
  • バックエンドAPIにアクセス可能でなければならない
  • iOS では、バックグラウンド通知のための追加設定が必要です
  • トークン登録にはネットワーク接続が必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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.

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。