dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
539 stars 361 forks source link

iOS: isMobileDataEnabled() not as documented/uses implementation for differend functionality #482

Closed sebastian-student closed 1 week ago

sebastian-student commented 2 years ago

Bug report

CHECKLIST

Current behavior:

The example project always returns TRUE for isMobileDataEnabled on iOS.

The implementation of isMobileDataEnabled for iOS requests if the user has explicetly forbidden this specific app from using mobile data. This permission is independent of the global toggle in settings->Mobile Data/control center.

Expected behavior:

Per documentation isMobileDataEnabled() should return the state of settings->Mobile Data toggle. An additional function isMobileDataAuthorized() should return if the app can use mobile data in case it is enabled.

Steps to reproduce:

Run example project on iOS and toggle mobile data while rechecking state.

Other information:

DavidWiesner commented 1 year ago

@dpa99c Are there any chances to fix this issue and merging this PR?

dAISY-GroupMember commented 10 months ago

@dpa99c Dear Dave, are there any chance for reviewing the pull request and getting an update on this in an upcoming release? Thanks a lot and best wishes P-