Use Yarn
yarn add capacitor-plugin-vk-auth
Use NPM
npm install capacitor-plugin-vk-auth --save
VKAuth.initWithId({ id: '7569443' })
VKAuth.auth({ scope: ['offline'] });
VKAuth.addListener("vkAuthFinished", (info) => {
console.log("vkAuthFinished was fired", JSON.stringify(info, null, 2));
});
Setup App in vk.com/dev
Create Standalone-application
Example both for Android & IOS
P.S. Setup for ios is unnecessary
Click to open useful docs for android
Add VK APP ID to app/res/values/strings.xml
Insert vkID into your Info.plist
file like this
Click to open useful docs for ios
Click to open settings for IOS 9
For any support create an issue and describe your problem, we can help you with our plugin ;)