Wifi connecting

im using wifiwizard
WifiWizard.connectNetwork(this.id, this.pass).then(data =>{console.log( data)}).catch(err => {console.log( err)})
getting error
Error in Success callbackId: WifiWizard680379602 : TypeError: callback.success.apply is not a function
plz help im stack .

Which package are you using to get WifiWizard. I don’t find this plugin in ionic native api and the cordova WifiWizard plugins that i found are not working with promises bit with callback.