Skip to content

BazuMax/capacitor-plugin-vk-auth

Repository files navigation

Capacitor Plugin VK Auth

Install

Use Yarn

yarn add capacitor-plugin-vk-auth

Use NPM

npm install capacitor-plugin-vk-auth --save

Using

VKAuth.initWithId({ id: '7569443' })
VKAuth.auth({ scope: ['offline'] });
VKAuth.addListener("vkAuthFinished", (info) => {
    console.log("vkAuthFinished was fired", JSON.stringify(info, null, 2));
});

Setup VK APP

Setup App in vk.com/dev

Create Standalone-application

Example both for Android & IOS

P.S. Setup for ios is unnecessary

Android

Click to open useful docs for android

Add VK APP ID to app/res/values/strings.xml

IOS

Insert vkID into your Info.plist file like this

Click to open useful docs for ios

Only for IOS 9

Click to open settings for IOS 9

Support

For any support create an issue and describe your problem, we can help you with our plugin ;)