I am trying to save data in local storage by using get storage. I created a instance of get storage (box) and write data in it in our services screen.
Here I created a instance of get storage
Here I write data in box
So I am trying to read this data from another screen of project but a error occur.
Here box can not be recognized
Please give your solutions Please.
Thanks
2
Answers
to read data from get storage you need to use
box.read(key)
:You can write this way.
or
You can read this way.
or
Remember: you must initialize get storage before using it.
For more details you can visit documentation here