Local Network Privacy Permission Dialog - iOS 14

In my application, I am accessing local network device using wifi connection. Transport type is UDP. That local network device expose few api's to process with my iOS application. For example, consider one of the api name is "Login" and other api name is "GetDeviceList".

When I call "Login" api from my iOS application (iOS 14), Local network privacy setting permission request dialog is not appearing (API processed successfully, without local network permission provided).

But when I call "GetDeviceList" from my iOS application (iOS 14) network privacy setting permission request dialog is displayed (API call is failed due to local network permission not provided).

As I am accessing Local network Device from both of the API. Permission dialog should be displayed for first time any one of the API is accessed. And both API should fail when permission not provided.

Could someone please help me to understand why permission is not showing for "Login" api and Login api is processed successfully. Every time "Login" API is processed successfully even though permission not provided.

https://support.apple.com/en-in/HT211870

With iOS 14 and iPadOS 14, any app that wants to interact with devices on your network must ask for permission the first time it tries to browse your local network.


Local Network Privacy Permission Dialog - iOS 14
 
 
Q