huawei_push 5.0.2+303 huawei_push: ^5.0.2+303 copied to clipboard
HUAWEI Push Kit plugin for Flutter that exposes all the functionality provided by the HUAWEI Push Kit SDK.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add huawei_push
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
huawei_push: ^5.0.2+303
Alternatively, 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:huawei_push/constants/channel.dart';
import 'package:huawei_push/constants/code.dart';
import 'package:huawei_push/constants/method.dart';
import 'package:huawei_push/local_notification/attributes.dart';
import 'package:huawei_push/local_notification/importance.dart';
import 'package:huawei_push/local_notification/local_notification.dart';
import 'package:huawei_push/local_notification/priority.dart';
import 'package:huawei_push/local_notification/repeat_type.dart';
import 'package:huawei_push/local_notification/visibility.dart';
import 'package:huawei_push/model/remote_message.dart';
import 'package:huawei_push/push.dart';