How can I check Local Network permission status on iOS 14

Anil M 1 Reputation point
2021-06-28T12:13:25.057+00:00

My app uses local network, Can we check Local network permission status whether Allowed/NotAllowed for my App.
109923-img-0229.png

I have tried to Connectivity.NetworkAccess Property but it returns NetworkAccess.Internet for Local network as well. I want to check Local Network permission status while using app.
Please let me know is there any way to accomplish it?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,337 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,951 Reputation points
    2021-06-29T06:03:21.247+00:00

    I have tried to Connectivity.NetworkAccess Property but it returns NetworkAccess.Internet for Local network as well.

    Hi,AnilM2021. Connectivity.NetworkAccess is just to monitor the device's network conditions, the function doesn't require addition set up on iOS such as permission. The api cannot used to check the Network permission status.

    I want to check Local Network permission status while using app.

    There is no API that directly returns your local network access state from Apple.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.