I added the plugin to my project by writing "ionic cordova plugin add wifiwizard2’ in the terminal. According to https://www.npmjs.com/package/wifiwizard2, there are muliple global functions, but when I write for instance WifiWizard2.getConnectedSSID(), I get the error Cannot find name ‘WifiWizard2’.