Skip to content

iOS14 - Local Network permission support #509

Description

@vasyl-i

Feature request

Support for Local Network permission needed (iOS14)

Why it is needed

With iOS 14 user may disallow Local Network permission for mobile app, which will deny access for app to local devices.
https://developer.apple.com/videos/play/wwdc2020/10110/

Possible implementation

Should be used like something like this:

    Permissions.getPermissionStatus('localNetwork').then((r) => {
        if (r === 'authorized') {
           // Do something
        } else if (r === 'undetermined') {
          Permissions.requestPermission('localNetwork').then((response) => {
              if (response === 'authorized') {
                           // Do something
              }
              if (response === 'denied') {
               // Notify user about Local Network permission denied, advice user to turn on permission
               }
            });
        } else {
               // Notify user about Local Network permission denied, advice user to turn on permission
        }
      });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions