-
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
Plugin returns "Not avaiable" error #95
Comments
+1 |
I'm unable to reproduce this on iOS13+ |
anyone have any updates on this how to use. |
Getting the same error on iOS 13 when I try getConnectedSSID() More Logs from iOS:
Seems to be related to the Location Permission |
Found out some more stuff. NEHotspot is only returning the SSID if you already connected to it through your app. |
Here is a fix if anyone wants to test it: Just add |
The same issues. In iOS 13.1.3, before calling the plugin, I checked programmatically whether the location service and location permission of the mobile phone were turned on, but the plugin still returned a "Not avaiable" error. The plugin works fine on any other iOS 13 system, including the latest iOS 13.2.3 Could it be a specific version error of iOS 13.1.3? |
Might be the case. I only did test on the latest version. |
Is anyone having any issues connecting to a network in iOS 13.3+? |
Seems to occasionally happen there too: https://forums.developer.apple.com/thread/123544 Seems to be a bug in iOS |
Does anyone have found the solution to this problem. I am still getting |
Same here. Anything new on this issue? |
@zabojad Is your system version also iOS 13.1.3? |
is there a fix for this issue? I saw it should be fixed with xcode 11.4 and ios 13.4 but no luck for me. |
It's not a very satisfying solution, but I am using the plugin cordova-plugin-geolocation to request the current location of the device when the app starts and if the user accepts the location access, At the moment this is running fine on iOS 13.5.1. In general I would be happy to have a solution without location access, because the app has nothing to do with the location and however the user has to accept it, but iOS seems to be restrictive with the wifi information (hint from an apple forum). |
@arsenal942 @andreareidel @digaus The following is the console log:
package.json
Then, I tried to switch the npm package to digaus
Still throws this error. I have checked the location authorization and I have connected a WiFi hotspot. This may be fatal, because Apple will release the official version of its iOS 14 system in the near future. If I still need to provide any information, I can provide it immediately. |
there is already a fix available for this in the @digaus fork. |
I tried to switch the npm package to digaus
Still throws this error. What should I do? |
I am importing it like this.
Then I deleted everything like node_modules, platforms, .. Just standard things. |
The error Here is my message:
When calling
Why |
I will test this on ios 14 I am using 13 |
Is there a PR containing the fixes from the fork another user did? If so, I
will review and merge accordingly.
On Tue, 7 Jul 2020 at 7:17 pm, Angelo Fan ***@***.***> wrote:
@HusFNS <https://github.com/HusFNS> OK
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#95 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADO6DHCGHTSKRMRHJEAGOMLR2LR2PANCNFSM4JBTIX6Q>
.
--
Regards,
Nicholas Clancy Technical Director & Partner
Inline images
0420 634 180 or +61 420 634 180 nick@viscreate.com.au Norwest Business
Park, Bella Vista, NSW, 2153, Australia www.viscreate.com.a
|
The culprit is the "Precise Location" switch in the location authorization. If it is turned off, a Not available error will be returned. This option is newly added in iOS 14. Regarding location authorization, Apple has abandoned some APIs and added some Beta APIs. This is a document on Apple's official website: https://developer.apple.com/documentation/corelocation/cllocationmanager In the
Maybe this part of our inspection location can be done using this library? Because checking whether the user authorized the location is not actually a task of our plug-in, it is only necessary to check the necessary process for our plug-in to work properly. Edit: I removed some of my invalid comments to keep this issue clean. |
Has this issue been resolved? |
iPhone 13pro,IOS 15.4.1,use getCurrentPosition() return "Not available",can you help solve this problem? |
I found the solution by looking at the react native equivalent docs.
Before attempting to get the SSID you'll have to request Location Permission first, or you'll get a different error. Tested on iPhone 12 running iOS 17.6.1 |
Prerequisites
Check all boxes if you have done the following:
Issue type
Select all that apply
Description
Plugin returns returns "Not avaiable" error on iOS 13 when
getConnectedSSID()
is called, same application was working just fine on iOS 12. Also checked the app permissions and updated dependencies, but problem persists.Steps to Reproduce
getConnectedSSID()
method from anywhere in the code (make sure promise gets called after device is ready) e.g.Expected behavior:
The method should resolve successfully and
result
should be shown in the alert messageActual behavior:
The method does not resolve and the
catch
callback is called, the message shown in the device is "Not available"Reproduces how often:
100%
Versions
The text was updated successfully, but these errors were encountered: