Hi, a pretty important point has been omitted in this article, localStorage is no longer guaranteed to be persistent on iOS devices and can be deleted by the OS at any point. You should not use it for storage and instead use the Phonegap storage plugin.
Cheers!