getDeviceInfo function
Implementation
Future<Map<String, String>> getDeviceInfo() async {
final navigator = web.window.navigator;
final browserName = _browserName(navigator.userAgent);
final platform = navigator.platform.isEmpty ? 'Web' : navigator.platform;
return {
'deviceId': 'web-${browserName.toLowerCase()}',
'deviceName': '$browserName on $platform',
};
}