react-native-vlc-media-player
                                
                                 react-native-vlc-media-player copied to clipboard
                                
                                    react-native-vlc-media-player copied to clipboard
                            
                            
                            
                        Preventing Local Network Privacy Permissions Alert in iOS 14
My Environment
- Plugin version: 1.0.29
- Platform: iOS only
- OS version: iOS 14
- Device manufacturer / model: iOS devices
- React Native version (react-native -v): 0.63.4
Actual Behavior
My application on iOS devices running on iOS 14 show the Alert “[MyApp] would like to find and connect to devices on your local network” when the specific screen is loading RTSP link.
Expected Behavior
What I want is when I access to the specific screen which using this plugin, I do not wanna see the Alert anymore.
Steps to Reproduce
- Launch the application.
- Access to the screen (supposed the screen is X) which loading RTSP link.
- When I access to X from another screen, the X show the Alert "[MyApp] would like to find and connect to devices on your local network".
Context
I knew that iOS 14 request users must add support for local network privacy permissions and the behavior above is only show on iOS devices running on iOS 14 and later. But I do not really need this behavior appear in the screen X. Simply, I wanna load the RTSP link. Why do I need to grant permission of finding and connecting to devices on my local network? Is there any methods to prevent this behavior or could I grant permission for this request when I launch the application, the Alert is not showing to users and its automatically understand that users has accepted the permission.
I really appreciate any help! Thanks a million.
@razorRun Could you help me, please?
Hey I think this is managed from iOS it self if you add permissions to the plist, it should ask once and save it. Did you request permissions that way?
On Fri, 16 Jul 2021 at 12:48 PM, Tuong Thuy @.***> wrote:
@razorRun https://github.com/razorRun Could you help me, please?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/razorRun/react-native-vlc-media-player/issues/81#issuecomment-881098599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EGVGPVOJ2PERSQ7HTTTX56UJANCNFSM5ANOT7WQ .
@razorRun
Hey I think this is managed from iOS it self
Yes, this behavior is managed from iOS it self but you can refer the link below. This will talk about the Local Network Privacy in iOS 14 from Apple, and its said that
There is no API to explicitly bring up the local network privacy alert. However, you can bring it up implicitly by sending traffic to a local network address.
Local Network Privacy: https://developer.apple.com/forums/thread/663888
if you add permissions to the plist, it should ask once and save it. Did you request permissions that way?
As I said above, I do not add or request any permissions in Info.plist. When I am in iOS 13, there is no alert or any request for local network privacy permissions. But when I upgrade to iOS 14, this behavior is happened as I mentioned and this behavior is actually happened on iOS devices running on iOS 14.
My application does not support local network sharing and I just want to show the real time streaming using RTSP link. Is there any methods to prevent this behavior?
@razorRun Excuse me, razorRun. Could you help me, please? Our team and I are using your plugin to perform real time streaming. After we upgraded our iOS devices to iOS 14, we've got the issue above. I hope to see your answer. Thank you so much, razorRun!
Hey
I think probably this get triggered because of the VLC version. We might have to update it … have you test using my test repo ? Because the app I develop this plugin works on iOS to stream rtsp cameras without an issue..
On Sun, 18 Jul 2021 at 11:50 PM, Tuong Thuy @.***> wrote:
@razorRun https://github.com/razorRun Excuse me, razorRun. Could you help me, please? Our team and I are using your plugin to perform real time streaming. After we upgraded our iOS devices to iOS 14, we've got the issue above. I hope to see your answer. Thank you so much, razorRun!
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/razorRun/react-native-vlc-media-player/issues/81#issuecomment-882044496, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EFVBVBZHLZAORXGKA3TYK5XBANCNFSM5ANOT7WQ .