angular 6, cordova, android, social vk

103 views Asked by At

trying to use cordova-vk plugin to make social vk.com login work together with angular 6 project. getting error

VkSdk is not defined

have added this before module, but didnt help:

declare var VkSdk:any;

also this:

let VkSdk:any;

looks like VkSdk not created inside flatform, but how to debug? did someone solved social login for angular and cordova? normal oauth not working because of 'base domain error' :(

Thank you for any help.

1

There are 1 answers

1
Suresh Kumar Ariya On

Please check whether this helps.

declare const window: any;

Access the plugin using 'window.VkSdk'.