zoontek / zoontek/react-native-permissions

iOS14 - Local Network permission support

Open
#509 23 comments 30 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Objective-C++
Stars
4.4k
Forks
844
Avg merge
11d 18h
Merged PRs (30d)
1

Description

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
        }
      });

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the Permissions.getPermissionStatus('localNetwork') and Permissions.requestPermission('localNetwork') entry points and links the WWDC 2020 Local Network permission session. Start by tracing those APIs and the iOS permission handling; done should include authorized, undetermined, and denied behavior for iOS 14. No repository files or tests are identified, so the implementation scope needs clarification.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native
Domain
authorization, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.