mobpush_plugin_ohos 1.4.2
mobpush_plugin_ohos: ^1.4.2 copied to clipboard
这是一个基于 MobPush 功能的扩展的 Flutter 插件。使用此插件能够帮助您在使用 Flutter 开发应用时,快速地实现推送功能。
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add mobpush_plugin_ohosThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
mobpush_plugin_ohos: ^1.4.2Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mobpush_plugin_ohos/mobpush_custom_message.dart';
import 'package:mobpush_plugin_ohos/mobpush_local_notification.dart';
import 'package:mobpush_plugin_ohos/mobpush_notify_message.dart';
import 'package:mobpush_plugin_ohos/mobpush_plugin.dart';