패키지, 저장소 및 앱 카테고리 검색

패키지 상세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 기반 모바일 앱
  • 실시간 알림이 필요한 앱
  • WordPress와 Firebase를 사용하는 개발자
  • 자동 토큰 관리가 필요한 프로젝트
  • 다기기 알림 시스템

고려 사항

  • 백엔드 지원을 위해 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.