Local storage value does not record on several devices

I don’t think you do. The only way to ensure that whatever you are doing happens after the set has finished is to wait on the Promise it returns. Period. This has nothing whatsoever to do with devices. It is actively counterproductive for you to try these things on various devices and consider blaming the device. I describe this in some more detail here.