You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Web - when localStorage is not allowed, like Facebook Instant Games.
Current Behavior
await Device.getInfo() gives following error message.
SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
Error: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.
Bug Report
Plugin(s)
Device
Capacitor Version
Platform(s)
Web - when localStorage is not allowed, like Facebook Instant Games.
Current Behavior
await Device.getInfo()
gives following error message.This error occurs because capacitor is trying to save the generated uuid to localStorage.
Expected Behavior
Capacitor should check whether localStorage is available and writeable.
It should return the DeviceInfo without an uuid.
Code Reproduction
await Device.getInfo()
The text was updated successfully, but these errors were encountered: