tripflex / WifiWizard2

A Cordova plugin for managing Wifi networks (new version of WiFiWizard) - Latest is version 3+
https://www.npmjs.com/package/cordova-plugin-wifiwizard2
Apache License 2.0
123 stars 146 forks source link

Error: Plugin WifiWizard2 does not respond to method call add. Ensure plugin method exists and uses @objc in its declaration #131

Open sultanmyrza opened 3 years ago

sultanmyrza commented 3 years ago

Anyone got working WifiWizzard2 with ios?

I created fresh project ionic start photo-gallery tabs --type=angular --capacitor add WifiWizard2 and when I try to connect to my wifi with ssid: MY-WIFI-SSID and pass: MY-WIFI-PASS I got this error

To Native Cordova ->  WifiWizard2 add WifiWizard2254455059 ["options": ["MY-WIFI-SSID", WPA, "MY-WIFI-PASS", 0]]
Error: Plugin WifiWizard2 does not respond to method call add:.
Ensure plugin method exists and uses @objc in its declaration

My environment

xcode version 12.3 (12C33)

real device ios 14.6

My Runner.entitlements

Screen Shot 2021-08-11 at 6 36 01 PM

click to expand ``` xml com.apple.developer.networking.HotspotConfiguration com.apple.developer.networking.networkextension app-proxy-provider com.apple.developer.networking.wifi-info com.apple.external-accessory.wireless-configuration ```

My Info.plist

click to expand ``` xml CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName goproexperiments CFBundlePackageType APPL CFBundleShortVersionString $(FLUTTER_BUILD_NAME) CFBundleSignature ???? CFBundleVersion $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS NSBluetoothAlwaysUsageDescription Need BLE permission NSBluetoothPeripheralUsageDescription Need BLE permission NSLocationAlwaysAndWhenInUseUsageDescription Need Location permission NSLocationAlwaysUsageDescription Need Location permission NSLocationWhenInUseUsageDescription Need Location permission UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance ```
tigohenryschultz commented 3 years ago

Yeah, I get this issue for getWifiRouterIP

EYALIN commented 1 year ago

@sultanmyrza @tigohenryschultz
it has been fixed in my forked repo: https://github.com/EYALIN/community-cordova-plugin-wifi-wizard

you can install it as an npm package: cordova plugin add community-cordova-plugin-wifi-wizard --save