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