Share via

How can I check Local Network permission status on iOS 14

Anil M 1 Reputation point
Jun 28, 2021, 12:13 PM

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,378 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,966 Reputation points
    Jun 29, 2021, 6:03 AM

    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.