FLUTTER ECOSYSTEM

kevincaicedo/imei_plugin

用于在 Flutter 中获取 Android IMEI 的插件

imei_plugin 项目封面
Stars
35
Forks
44
最近推送(UTC)
2023年1月16日
项目状态
未归档
Kevin Caicedo GitHub avatar
GITHUB User

Kevin Caicedo ↗

Software engineer, Full-stack developer.

Colombia
语言JavaDartRubyObjective-CShellKotlin

此仓库发布的插件

使用的依赖

依赖清单 1 项
  • flutter{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

Imei Plugin

Build version

Get unique id device on ios and android

Getting Started

Get IMEI (International Mobile Device Identity) for Android devices less than android 10 with runtime permission for android greater than or equal to 10 returns a UUID and get unique identification on ios An alphanumeric string that uniquely identifies a device for the application provider.

Use

import 'package:imei_plugin/imei_plugin.dart';

String imei = await ImeiPlugin.getImei();
List<String> multiImei = await ImeiPlugin.getImeiMulti(); //for double-triple SIM phones
String uuid = await ImeiPlugin.getId();

if you want to always request permission even if the user has already denied it. You can disable validation shouldShowRequestPermissionRationale set value in false

String platformImei = await ImeiPlugin
    .getImei( shouldShowRequestPermissionRationale: false );

default value is false.

New Features!
  • New param shouldShowRequestPermissionRationale only Android

  • getId only android. id generated with UUID.randomUUID()

  • getImeiMulti support for double-triple SIM phones

Platform Support
OS
Android
IOS

License

MIT

Author

This plugin is developed, Free Software, by Kevin Caicedo