-
Notifications
You must be signed in to change notification settings - Fork 145
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
this plugin seems to be broken in IOS 13.0 beta (getCurrentSSID returns unknown) #88
Comments
Thanks for reporting this, does anybody have any insight into why this may be in iOS 13.0+? |
same issue, Xcode debugs logs:
I think it's a permission issue on iOS 13:
|
Hi, I added the location permission manually by installing another plugin that needs the location (cordova-plugin-geolocation) and that fixed it! |
Just received from apple: Dear $firstName, As we announced at WWDC19, we're making changes to further protect user privacy and prevent unauthorized location tracking. Starting with iOS 13, the CNCopyCurrentNetworkInfo API will no longer return valid Wi-Fi SSID and BSSID information. Instead, the information returned by default will be: SSID: “Wi-Fi” or “WLAN” (“WLAN" will be returned for the China SKU) If your app is using this API, we encourage you to adopt alternative approaches that don’t require Wi-Fi or network information. Valid SSID and BSSID information from CNCopyCurrentNetworkInfo will still be provided to VPN apps, apps that have used NEHotspotConfiguration to configure the current Wi-Fi network, and apps that have obtained permission to access user location through Location Services. Test your app on the latest iOS 13 beta to make sure it works properly. If your app requires valid Wi-Fi SSID and BSSID information to function, you can do the following: Learn more by reading the updated documentation or viewing the the Advances in Networking session video from WWDC19. You can also submit a TSI for code-level support. |
Apple really don’t help developers out here. I will update the plugin with a fix shortly otherwise it will require you as the user to implement a polling mechanism which checks if you’re still connected to your IoT device. I imagine this would involve polling a local endpoint on the connected device and checking if that resolves or not. |
Thanks. For most iot device maybe the solution suggested by Apple is OK (passing a prefix of ssid created by device) but different from what currently your plugin is doing. |
@arsenal942 Please let us know in which version of this plugin this ios13 issue is resolved, I also received the same email from apple regarding their policy change as shown by @almadomus. |
I had the same problem and found this solution working for me: https://juejin.im/post/5d4d1478f265da03e921b7de (google translate it) The solution seems to be to check and force the permission request by means of the CoreLocationManager in the "fetchSSIDInfo". |
Hello, I had the same problem in my home automation app, which needed the SSID string. |
I was on iOS 13.0 and installed the cordova-plugin-geolocation and called getCurrentPosition to ask for location permission seems to have worked for like a week, but then it stopped working. Anyone else run into this issue on iOS 13.1.2. |
Is it possible to do something in order to be compatible with devices with version numbers ios13+ and android 8.1+?
If you don't do this, everyone needs to make this judgment in their code when using the plugin. |
Here is a fix if anyone wants to test it: Just add |
Tried this on iphone 11, and the app fails to launch with this error:
|
@ttthub @digaus This plugins requires the following usage description:
Just like other plugins that auto-write Here are some references: |
Yes should have mentioned that. I switched to capacitor and created a WiFi plugin there. |
I can confirm that it has worked for me on iOS 13.3 after adding the config manually. However, it does not detect the wifi details on iOS 13.2.3 (dont know about other versions) |
What changes did you make and if you can, submit a PR and I will review it. |
You can see the changes in the link. :) Currently busy with my application. Created my own Ionic Capacitor WiFi Plugin for better integration in my project. If I find the time I can make a PR |
Any progress? |
same functionality works flawless in the latest IOS 12
The text was updated successfully, but these errors were encountered: