Can you please help me to solve the issue… Currently I am checking in browser using ionic serve --l. Is there any issue related to this, I mean whether the storage will work only on device?
Storage will work fine on the browser, and on a device (although some people use NativeStorage on devices). You can see your storage set up in the chrome developer tools under :
Application --> Storage --> IndexedDB