FLUTTER ECOSYSTEM

woosignal/wp-notify-flutter

Firebase Cloud Messaging를 사용하여 WordPress에서 푸시 알림을 보냅니다. 이 패키지는 FCM 토큰을 자동으로 WordPress에 전송하여 알림을 보내기 시작합니다. 기능에는 WordPress 사용자를 FCM 토큰에 할당하고, iOS 및 Android용 기본 푸시 알림을 보내는 것이 포함됩니다.

wp-notify-flutter 프로젝트 이미지
Stars
5
Forks
3
최근 푸시(UTC)
2025. 12. 13.
프로젝트 상태
활성
WooSignal GitHub avatar
GITHUB Organization

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"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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.