Open ghost opened 8 years ago
Same issue here, but with ionic framework
Hello, now it work, I use command to clean cordova, and now it works fine. Regards
Hi, I tried the cordova clean command, but continued with the same problem. I update the cordova and the project, but did not work either.
Thanks
Hi, I'm developing an app ionic, I want to use wifiwizard plugin, but: WifiWizard is not defined. it's compatible WifiWizard with ionic? . Regards
when I ran it in chrome it said WifiWizard is not defined,but it worked when I ran android
do it support ios?
+1
u need to make sure the platform is ready, not need to inject in controller...
$ionicPlatform.ready(function() {
WifiWizard.getCurrentSSID(function success(result){
....
Guys, the wifiWizard is made only for Android/iOS (it's on the readme) and for using it (besides installing it) you need to declare it outside your class as declare var WifiWizard: any;
Then you can use it inside any method as WifiWizard.getCurrentSSID(functionHandler(ssid),errcatcher(err:any))
Hope it helps you :)
Hello, how can I inject the plugin into my application config? I would like to let the application to set the wifi password if it is installed. I have this code on application configuration.
´´´
var happyApp = angular.module('happyApp', [ 'ionic', 'ngRoute', 'happyControllers', 'pascalprecht.translate', 'ionic.utils', 'api' ]);
happyApp.config(function($stateProvider, $urlRouterProvider, $translateProvider){
});
´´´
But when I start the application the console give me undefined error in image
Error: [$injector:unpr] Unknown provider: WifiWizard
Can you help me please?