Get current deviceId from within the Flutter application. Android(android_Id), IOS(IDFV)
Android | iOS |
---|---|
✔️ | ✔️ |
import 'package:flutter_device_id/flutter_device_id.dart';
final _flutterDeviceIdPlugin = FlutterDeviceId();
String? deviceId = await _flutterDeviceIdPlugin.getDeviceId() ?? '';