wp_notify
Firebase Cloud Messaging를 사용하여 WordPress에서 푸시 알림을 보냅니다. 이 패키지는 FCM 토큰을 자동으로 WordPress에 전달하여 알림 전송을 시작합니다. WordPress 사용자에게 FCM 토큰을 할당하고, WordPress의 API를 사용하여 iOS/Android 기기로 푸시 알림을 보내는 기능이 포함되어 있습니다.
Firebase Cloud Messaging를 사용하여 WordPress에서 푸시 알림을 보냅니다. 이 패키지는 FCM 토큰을 자동으로 WordPress에 전송하여 알림을 보내기 시작합니다. 기능에는 WordPress 사용자를 FCM 토큰에 할당하고, iOS 및 Android용 기본 푸시 알림을 보내는 것이 포함됩니다.
^6.38.1^1.4.0{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Notifications
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.
In your flutter project add the dependency:
dependencies:
...
wp_notify: ^2.0.5
Import wp_notify.dart
import 'package:wp_notify/wp_notify.dart';
import 'package:wp_notify/wp_notify.dart';
...
void main() {
WPNotifyAPI.instance.initWith(baseUrl: "https://mysite.com");
...
WPStoreTokenResponse wpStoreTokenResponse;
try {
wpStoreTokenResponse = WPNotifyAPI.instance.api((request) => request.wpNotifyStoreToken(token: token, userId: usersId));
} on Exception catch (e) {
print(e);
}
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.
To use this plugin, add wp_notify as a dependency in your pubspec.yaml file.
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.