Skip to content

Local Network Permission #282

@z234009184

Description

@z234009184

Feature Description
Describe what functionality you want to see.

Thank you for your development of this library. I have a small demand. When the application is started for the first time, it mistakenly touches that it is not allowed to use the network permission. How can I know that the user does not open the network permission and let the user go to the setting page to open the network permission?

let data = CTCellularData()
        let state = data.restrictedState
        switch state {
          case .notRestricted:
          DispatchQueue.main.async {
              authorizedHandler()
          }
          default:
          DispatchQueue.main.async {
              unAuthorizedHandler()
          }
        }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestwait moreFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions