As per the title, how would I check the safari/chrome browser used by an iphone/ios user is in lock down mode?
I've got a web app which works fine, but recently when testing on ios 17.2 indexedDB doesn't work, I cannot add files, it just crashes with no error message. so I assume its in lockdown mode. I did do a test on browserstack with the same ios version in safari and it worked without issue, any help would be appericated.
Resources I've looked at:
let isLockdownModeEnabled = (UserDefaults.standard.object(forKey: "LDMGlobalEnabled") as? Bool) ?? false
however I cant access UserDefaults via javascriptI'm using this:
if (typeof window.FileReader === 'undefined')
{
alert('Do you have Lockdown Mode enabled on your device?\n\nIf so you will need to add our website to the list of allowed sites to continue.');
}
Any false negatives or positives observed for this would be appreciated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With