iOS 14 How to trigger Local Network dialog and check user answer?

后端 未结 3 574
别那么骄傲
别那么骄傲 2021-01-05 01:40

I\'ve seen this Q/A What triggers, but it\'s not what I want. I also read this Network privacy permission check, but there is no answer. I also search for any methods or cla

3条回答
  •  北海茫月
    2021-01-05 01:42

    In my case it was accessing this variable for some internal device statistics:

    ProcessInfo.processInfo.hostName
    

    Accessing this variable caused the alert to appear. If it doesn't cover your case perhaps you can search source code for some references around the local network/host.

提交回复
热议问题