Open marcincodes opened 3 months ago
Hi, @marcincodes! Thank you for reaching out, we'll prioritize and fix the issue by the end of the month. We'll let you know once it's ready!
Hi @marcincodes you are right iOS 15.3 and less - don't support crypto.randomUUID()
from the box
we released a new version 1.2.0 and replace .randomUUID()
Hi, thanks for quick fix! We are testing right now new version, I'll keep you updated
Expected Behavior
Fields should fallback to other solution when
window.crypto.randomUUID()
is not availableCurrent Behavior
window.crypto.randomUUID is undefined
Possible Solution
Write a fallback to react
useId
if it's available orgetRandomValues()
to generate uuid like idSource: https://www.phind.com/search?cache=u11vgs2u05g6gdllheburzal
It will be even better to use
useId
from react and fallback to other solutionsSteps to Reproduce (for bugs)
Context
crypto.randomUUID()
is relatively new, it was introduced 3 years ago and projects that have users with <iOS 15.3 encounter this problem. Workaround for now is to patch collect-js-react packageYour Environment