-
-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS14 - Local Network permission support #509
Comments
@vahutson I'm not sure this is a requestable permission? I can't find any documentation about it on https://developer.apple.com/documentation/ |
idk if this helps: https://developer.apple.com/forums/thread/654916 |
@fernandesrenan Not really:
|
This means that no native API no feature on react-native-permissions? |
@fernandesrenan Totally. We are not wizards, Apple has to do its job. |
from Apple How to trigger privacy permission |
is there a way to request user to allow Local Network permission in iOS 14? |
Same issue here |
@geroale doesn't look like an "issue" at this point, based on @jimji1005 comment it looks like it needs someone to implement it. Do you have PR you could propose? |
@vahutson resolve ? |
It seems that still there is not native api to trigger at this point (end of 2021) so this is not an issue can be handled For popping up the permission prompt: Can be handled "manually" or it can be implemented as an api in Checking if Local Network permission is granted: More in depth details about these solutions can be found in this SO answer - link Personally Im going to write a small native library to perform these 2 hacks.. Can share the code for a PR to be added to this library if anyone is interested (I do write it in Swift though) PS: All discussions I found about this issue on the native side are at the end of 2020, so maybe an api for these was added by now, if so I could not find such a thing. Hope this helps |
This comment was marked as spam.
This comment was marked as spam.
+1 for support this permission |
@zameschua this is interesting, I think https://medium.com/hackernoon/i-thought-i-understood-open-source-i-was-wrong-cf54999c097b |
Sure, we can hire my as a contractor to do it if you want. If all the people here ask their companies to get some funding, it should be possible 🙂 |
I have a working solution which I am using in my app and I am interested in sharing it as a PR to this lib - the only caveat is that what I have is written in Swift, does anyone have any guidance on how to integrate it? For reference, here is my implementation. It runs at app launch and currently just triggers the prompt without doing anything with the response. |
That's pretty cool. I believe at this point every modern react-native project has already had to deal with the inclusion of swift files - I know I worked through tons of compilation issues with main repo in the 0.63/0.64 time frame and they should be all handled now Stated differently: swift as a language should be valid for react-native modules So then the question is whether you can easily include a single swift file in this module, and then wrap it as a separate cocoapods podspect to include for people, exposed in the typescript. Should be possible? Only way to know is to try I think |
@grit96 I was looking at your pr and was wondering if it would be merged. If so do you have any idea approximately when? I tried to install the one from your PR on your fork but was not able to get it to install. Is there any chance you could create standalone version into we know if your pr is merged |
Any updates here? |
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:
Upvote & Fund
The text was updated successfully, but these errors were encountered: