I’m trying to use a custom plugin in typescript but I don’t know how to.
I followed the usual tutorial
and created a plugin manually just for android for now
then I used plugman to install it. After opening Android Studio I can see that everything is linked up together.
However how do you use the plugin in a ts file?
How do you use the import statement to import a custom plugin?
Nothing seems to be attached to window.plugins or window.cordova.plugins.
VS Code does not seem to know about the new plugin either. For instance the Device plugin has some interfaces defined in /node-modules/ionic-native. Do I have to do that as well? Currently I cannot access any plugins including the one I created manually.