diff --git a/package.json b/package.json index a9d4916..d28d292 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vkontakte/create-vk-app", - "version": "1.0.3", + "version": "1.0.4", "description": "VK Apps Boilerplate", "main": "src/index.js", "repository": { diff --git a/src/App.js b/src/App.js index c30e3e2..0322c5d 100644 --- a/src/App.js +++ b/src/App.js @@ -29,6 +29,9 @@ class App extends React.Component { }); } }); + // It is necessary to call VKWebAppInit to launch the app + VKConnect.send('VKWebAppInit', {}); + VKConnect.send('VKWebAppGetUserInfo', {}); }