huawei_push
6.15.0+300, released 6 months ago by developer.huawei.com
Flutter plugin for Huawei Push Kit, enabling push and local notifications on Android.
What it does
Provides a Dart interface to Huawei Push Kit SDK, allowing apps to receive push messages, schedule local notifications, and handle deep links. It also supports exact alarm scheduling for Android 12+.
AI-written summary of version 6.15.0+300, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need push notifications on Huawei devices
- Want to use Huawei's native push service instead of Firebase
- Require local notification scheduling with exact timing
Skip it when
- Targeting only iOS or non-Huawei Android devices
- Already using Firebase Cloud Messaging
Strengths
- Full coverage of Huawei Push Kit SDK features
- Handles Android 12+ exact alarm permissions
- Supports scheduled local notifications and deep linking
Weaknesses
- Android‑only, no iOS support
- Requires Huawei account and AppGallery Connect setup
- Must add SCHEDULE_EXACT_ALARM permission manually
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Add dependency to pubspec, add android permission <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/> in AndroidManifest, configure AppGallery Connect credentials, initialize plugin in main.dart.
import 'package:huawei_push/huawei_push.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await HuaweiPush.instance.initialize();
runApp(MyApp());
}Alternatives
Packages that do the same job and could replace huawei_push.
- firebase_messaging
Provides cross‑platform push notifications and works on non‑Huawei devices
99Compare