- Introduction
- Installation Guide
- Function Definitions
- Configuration & Description
- Licencing & Terms
This module enables communication between HUAWEI Push Kit SDK and Flutter platform. It exposes all functionality provided by HUAWEI Push Kit SDK.
To complete this guide , you have to be installed and running flutter on your machine successfully.
- HUAWEI Flutter Push Library comes with ready demo example.
- Clone the project into your desktop or download the zip file and unzip it.
- Open the project in Android Studio.
- Open terminal in Android Studio and run
flutter pub get - Make sure that your device is connected. You can run
flutter doctorto become sure that everything is okay. - Start flutter project in Android Studio.
The plugin library is in the android/src/main folder in the root directory.
|_HP_HMSCore-Plugin-Flutter_Push-Library
|_ android
|_src
...
- Usage of every functions are in the
example/lib/main.dartfile.
| Return Type | Function |
|---|---|
| Future | Push.getId() |
| Future | Push.getAAID() |
| Future | Push.getAppId() |
| Future | Push.getToken() |
| Future | Push.getCreationTime() |
| Future | Push.deleteToken() |
| Future | Push.subscribe() |
| Future | Push.unsubscribe() |
| Future | Push.setAutoInitEnabled() |
| Future | Push.isAutoInitEnabled() |
| Future | Push.turnOnPush() |
| Future | Push.turnOffPush() |
| Future | Push.getAgConnectValues() |
No.
Apache 2.0 license.
