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

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

Closed
5 tasks done
sebastian-student opened this issue Oct 19, 2022 · 2 comments

Comments

@sebastian-student
Copy link

Bug report

CHECKLIST

  • I have read the issue reporting guidelines
  • I confirm this is a suspected bug or issue that will affect other users
  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • I have read the documentation thoroughly and it does not help solve my issue.
  • I have checked that no similar issues (open or closed) already exist.

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:

  • toggle to change the per app mobile data permission only appears in per app settings and mobile data settings after the first http request
  • default value appears to be kCTCellularDataNotRestricted
  • I'm not aware of an equivalent native Android functionality to block specific apps from using mobile data (The closest I have found is blocking data usage from background.)
  • intention for Add mobile data permission #478 was to be able to display a hint to the user should mobile data be enabled but the specific app not authorized to use it
@DavidWiesner
Copy link

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

@dAISY-GroupMember
Copy link

@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-

@dpa99c dpa99c closed this as completed in b05ad5c Nov 15, 2024
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