cordova.plugins.diagnostic 7.2.7 → 7.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/ios/Diagnostic_Wifi.m +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
**v7.2.8**
|
|
4
|
+
(ios) bugfix: Avoid reporting false-positive Local Network Permission Denied by returning indeterminate result, instead of denied, if NSNetService publish fails with an error, as it can fail for reasons other than permission denied.
|
|
5
|
+
|
|
3
6
|
**v7.2.7**
|
|
4
7
|
(ios) bugfix: Handle DNS PolicyDenied like EPERM for local network permission detection
|
|
5
8
|
|
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
|
3
3
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
4
|
id="cordova.plugins.diagnostic"
|
|
5
|
-
version="7.2.
|
|
5
|
+
version="7.2.8">
|
|
6
6
|
|
|
7
7
|
<name>Diagnostic</name>
|
|
8
8
|
<description>Cordova/Phonegap plugin to check the state of Location/WiFi/Camera/Bluetooth device settings.</description>
|
|
@@ -434,6 +434,10 @@ static NSTimeInterval const kLocalNetworkDefaultTimeoutSeconds = 2.0;
|
|
|
434
434
|
NSNumber *errorDomain = errorDict[NSNetServicesErrorDomain];
|
|
435
435
|
NSNumber *errorCode = errorDict[NSNetServicesErrorCode];
|
|
436
436
|
[diagnostic logDebug:[NSString stringWithFormat:@"netService didNotPublish (domain=%@, code=%@)", errorDomain, errorCode]];
|
|
437
|
-
|
|
437
|
+
// NSNetService can fail to publish for many reasons unrelated to permissions (network issues,
|
|
438
|
+
// name collisions, configuration problems, etc.). We cannot reliably determine permission denial
|
|
439
|
+
// from NSNetService error codes alone, so return indeterminate. The browser state handler in
|
|
440
|
+
// handleBrowserState will catch actual permission denials via isPermissionDeniedError.
|
|
441
|
+
[self completeLocalNetworkFlowWithState:LocalNetworkPermissionStateIndeterminate shouldCache:NO];
|
|
438
442
|
}
|
|
439
443
|
@end
|