Skip to content
pubscout

aliyun_push

1.2.0, released 7 months ago by an unverified publisher

Flutter plugin for integrating Aliyun Push notification service on Android and iOS.

$ flutter pub add aliyun_push

What it does

Simplifies the integration of the native Aliyun Push SDK for Android and iOS into a Flutter application. Provides a unified Dart API for initialization, device IDs, account binding, aliases, tags, and handling messages.

AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter app that requires push notifications powered by Alibaba Cloud (Aliyun).
  • You need cross-platform support for Aliyun Push on both Android and iOS.

Skip it when

  • Your backend relies on Firebase Cloud Messaging instead of Aliyun Push.
  • You only need local notifications without any hosted push backend.

Strengths

  • Deeply integrates native Aliyun Push SDKs for stable and reliable delivery.
  • Provides a consistent Dart API across Android and iOS.
  • Supports multiple third-party Android push channels (Huawei, VIVO, OPPO, Xiaomi, Meizu, FCM).

Weaknesses

  • Requires manual native configuration in AndroidManifest.xml and Podfile.
  • Platform-specific setup can be complex due to vendor-specific push channels.

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
1

Requires adding Aliyun specs to Podfile for iOS, configuring Info/Manifest metadata and ProGuard rules for Android, and passing AppKey and AppSecret during initialization.

import 'package:aliyun_push/aliyun_push.dart';

final _aliyunPush = AliyunPush();

Future<void> initAliyunPush() async {
  _aliyunPush.initPush(appKey: "YOUR_APP_KEY", appSecret: "YOUR_APP_SECRET").then((initResult) {
    var code = initResult['code'];
    if (code == kAliyunPushSuccessCode) {
      print('Init Aliyun Push successfully');
    }
  });
}

Alternatives

Packages that do the same job and could replace aliyun_push.

Works with

Packages commonly used together with aliyun_push: ones it builds on, ones built on it, and its own family.