Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sultanmyrza opened this issue Aug 11, 2021 · 2 comments

Comments

@sultanmyrza
Copy link

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
<dict>
    <key>com.apple.developer.networking.HotspotConfiguration</key>
    <true/>
    <key>com.apple.developer.networking.networkextension</key>
    <array>
  	  <string>app-proxy-provider</string>
    </array>
    <key>com.apple.developer.networking.wifi-info</key>
    <true/>
    <key>com.apple.external-accessory.wireless-configuration</key>
    <true/>
</dict>

My Info.plist

click to expand
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>$(DEVELOPMENT_LANGUAGE)</string>
    <key>CFBundleExecutable</key>
    <string>$(EXECUTABLE_NAME)</string>
    <key>CFBundleIdentifier</key>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>goproexperiments</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>$(FLUTTER_BUILD_NAME)</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>$(FLUTTER_BUILD_NUMBER)</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>NSBluetoothAlwaysUsageDescription</key>
    <string>Need BLE permission</string>
    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>Need BLE permission</string>
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>Need Location permission</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Need Location permission</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Need Location permission</string>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>UISupportedInterfaceOrientations</key>
    <array>
  	  <string>UIInterfaceOrientationPortrait</string>
  	  <string>UIInterfaceOrientationLandscapeLeft</string>
  	  <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
  	  <string>UIInterfaceOrientationPortrait</string>
  	  <string>UIInterfaceOrientationPortraitUpsideDown</string>
  	  <string>UIInterfaceOrientationLandscapeLeft</string>
  	  <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
</dict>
</plist>
@tigohenryschultz
Copy link

Yeah, I get this issue for getWifiRouterIP

@EYALIN
Copy link

EYALIN commented Apr 12, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants