flutteruuididentifier

How to generate a UUID Unique Identifier in Flutter Web?


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?


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