Added a check for kIsWeb in the DeviceInfoService to bypass the isPhysicalDevice() check on web platforms, since the app doesn't support QR code scanning on the web. Now the method will return false when running on the web, avoiding the unsupported operation error that occurs when trying to run device checks.
Imported kIsWeb to detect web platform.
Updated isPhysicalDevice() to return false for the web platform.
Ensured backward compatibility with iOS and Android platforms.
Added a check for kIsWeb in the DeviceInfoService to bypass the
isPhysicalDevice()
check on web platforms, since the app doesn't support QR code scanning on the web. Now the method will return false when running on the web, avoiding the unsupported operation error that occurs when trying to run device checks.kIsWeb
to detect web platform.