Skip to content

fast-flutter/flutter_msa_sdk_plus

Repository files navigation

flutter_msa_sdk_plus

OAID SDK for Flutter - MSA functionality for Chinese Android devices.

This is an enhanced version of the original flutter_msa_sdk with improved architecture using platform interface.

Features

  • Get OAID (Open Advertising ID) from Chinese Android devices
  • Check if device supports OAID functionality
  • Cross-platform support (Android only, iOS returns empty values)

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  flutter_msa_sdk_plus: ^4.1.0+2

Usage

Import the package in your Dart code:

import 'package:flutter_msa_sdk_plus/flutter_msa_sdk_plus.dart';
// Determine whether the device supports getting OAID
bool isSupport = await FlutterMsaSdkPlus().isSupport();
// Get OAID from device
String oaid = await FlutterMsaSdkPlus().getOAID();

Platform Support

Android

  • Full OAID functionality with support for major Chinese device manufacturers
  • Includes dependencies for: ASUS, BUN, Heytap, Samsung, Huawei, ZUI, and generic implementation

iOS

  • Returns false for isSupport()
  • Returns empty string for getOAID()
  • iOS devices do not have OAID equivalent

Dependencies

This plugin uses the following Android dependencies:

  • com.gitee.li_yu_jiang:Android_CN_OAID:4.1.0

Supported Devices

Manufacturer or Brand System or Framework
Huawei HMS Core 2.6.2+, Google Play Service 4.0+
Honor Magic UI 4/5/6, MagicOS 7.0+, Google Play Service 4.0+
XiaoMi, Redmi, BlackShark MIUI 10.2+, Google Play Service 4.0+
VIVO, IQOO Funtouch OS 9+, OriginOS 1.0+, Google Play Service 4.0+
OPPO, Realme ColorOS 7.0+, Google Play Service 4.0+
Samsung Android 10+, Google Play Service 4.0+
Lenovo ZUI 11.4+, Google Play Service 4.0+
Asus Android 10+, Google Play Service 4.0+
Meizu Android 10+, Google Play Service 4.0+
OnePlus Android 10+, Google Play Service 4.0+
Nubia Android 10+, Google Play Service 4.0+
Coolpad CoolOS, Google Play Service 4.0+
Coosea Android 10+, Google Play Service 4.0+
Droi Freeme OS, Google Play Service 4.0+
Other (ZTE, HTC, Motorola, ...) SSUI, Google Play Service 4.0+

License

The MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published