Search code examples
flutterwebgetuuididentifier

Flutter Web UUID Unique Identifier


How can I get UUID in Flutter Web. I need some unique identifier in order to keep record of devices useb by customer,my testing device,develeper device.

In android, I'm using device_info_plugin.

How can I get Unique identifier in Web?

Thanks in Advance


Solution

  • You can use platform_device_id to get the browser details.

    For browser info, you can use it as

    import 'package:platform_device_id/platform_device_id.dart';
    String? deviceId = await PlatformDeviceId.getDeviceId;
    print($deviceId);
    

    OR

    hare is the Answer to the approach to set a custom uuid for flutter web