[Question] is there any way to get android id or uuid for ios devices to uniquely identify users #1935
-
Questionin dart we can get then device uuid (ios) or android id which is uinque to each and every device i am in a very big problem i identify the user based on their page.client_user_agent and page.client_ip but if two users are on same wifi network and are using same browser then i can't distinguish between two users and that is not good. But dart provides a way to handle this issue i have pasted the sample code for it is there any way to implement it in flet @ndonkoHenri @FeodorFitsner please help Code sampleimport 'package:device_info/device_info.dart';
String deviceId;
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
if (Platform.isAndroid) {
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
deviceId = androidInfo.androidId;
} else if (Platform.isIOS) {
IosDeviceInfo iosInfo = await deviceInfo.iosInfo;
deviceId = iosInfo.identifierForVendor;
} Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Feodor will perhaps have to bring it to Flet. |
Beta Was this translation helpful? Give feedback.
Looks like a good feature request: https://pub.dev/packages/device_info_plus