The translation was generated automatically and may contain mistakes
Module: 4. Development
Lesson 16. Working with VK Storage
The main thing in the lesson
- •
VK Storage — Analog LocalStorage Web API . Using the LocalStorage Web API in mini-applications is difficult if the mini-application is hosted by the VKontakte since in this case the server address of the mini-application changes from build to build.
Преимущество VK Storage в том, что хранимые данные привязаны к пользователю, а не к устройству или домену сервера. Доступ к ним можно получить даже при смене домена.
- •
Use events to work with stored data
VKWebAppStorageGet,VKWebAppStorageSet,VKWebAppStorageGetKeys. - •
VK Storage can store up to 1,000 pairs
ключ=значение.
Useful links
- •Client part (source code) ,
Look at the code fragments by #M4L16> - •
- •
- •
- •
- •
- •
:::