I realise this will be less of an issue for those in the US and Europe, I am looking at implementing a event listener to handle network drops and loss of signal. Is there a way of doing this. Users of my apps in South Africa constantly face difficulty in this regard.
The plan would be to store any “offline” Transactions in local storage and once online my little blue dot will handle the situation. As i said are there any better ways of doing this?
I’d like to say that there is no better solution, but it will be a little self-confident.
Your solution is pretty straight and will cover a lot of cases(maybe all of them). And I could advise only one thing - it’s to take into account LocalStorage limitations, like:
it does not save data if the user is in incognito mode
it has a 5MB limit(depends on browser, but frequently no more than 5)
it’s not safe storage, browser extensions could steal data from LS