getDeviceInfo method
Returns a Map containing device information for web platform.
Implementation
@override
Future<Map<String, dynamic>?> getDeviceInfo() async {
final navigator = web.window.navigator;
final stableDeviceId = _getOrCreateStableDeviceId();
return {
'stableDeviceId': stableDeviceId,
'platform': navigator.platform,
'userAgent': navigator.userAgent,
'language': navigator.language,
'languages': navigator.languages,
'cookieEnabled': navigator.cookieEnabled,
'onLine': navigator.onLine,
'vendor': navigator.vendor,
'vendorSub': navigator.vendorSub,
'product': navigator.product,
'productSub': navigator.productSub,
'appName': navigator.appName,
'appVersion': navigator.appVersion,
'appCodeName': navigator.appCodeName,
};
}