-
-
Notifications
You must be signed in to change notification settings - Fork 849
Open
Labels
feature requestNew feature or requestNew feature or request
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
}
});
adrien-may, fernandesrenan, this-username-is-taken, aspidvip, voulgarakis and 22 more
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request