Search results for

[tags:webkit,safari and web,web inspector,HTML,CSS,JavaScript]

40 results found

Post

Replies

Boosts

Views

Activity

Not able to localise NSLocalNetworkUsageDescription.
Hi Team, I want to keep my custom message for the key NSLocalNetworkUsageDescription and hence want the localisation. But the localisation for this key is not working , It always take the value from the default value from the Info.plist But for other keys like NSCameraUsageDescription and NSLocationWhenInUseUsageDescription I am using ,is working fine. How can i achieve this ? /BR, Abhishek
12
0
4.2k
Sep ’20
iOS 14 Network privacy permission check is not shown after reinstall, nor is the toggle shown in Settings -> Privacy -> Local Network
While testing the implementation of this new check in our app, we discovered a bug: Our App Store version is still compiled with Xcode 11.7 Install it from the App Store on an iPhone with iOS 14.0 final (18A373) Launch the app. Whenever the first network action is started, the system popup is shown. Allow permission Check Settings -> Privacy -> Local Network -> App Name is present with the toggle enabled. So far so good. However, we wanted to see the system permission popup again: Delete the app Repeat steps 1 till 3 from above No popup is shown but local network access is silently accepted. Check Settings -> Privacy -> Local Network. The App Name is not present. So it's not possible anymore to disable local network access. This seems a serious bug, where a reinstall compromises the Local network privacy. And another bug for developers, as there seems no way to show the system popup a second time. For example to validate the localised version of NSLocalNetworkUsageDescription, which doesn't see
26
0
28k
Apr ’21
DNSServiceProcessResult users complaining about app freeze
I am using DNSServiceBrowse for getting the kDNSServiceErr_PolicyDenied (-65570) error for local network access as there is no API as per https://developer.apple.com/forums/thread/663852 I released the app on AppStore but now some users are complaining about app freeze issues and eventually app crash. I am unable to reproduce this issue on my device at all. But AppStore reviews are filled with app freeze and crashes keywords. let pointer: UnsafePointerInt8? = NSString(string: _services._dns-sd._udp).utf8String var browseRef: DNSServiceRef? DNSServiceBrowse(&browseRef, 0, 0, pointer, nil, browseCallback, nil) DispatchQueue.global().async { DNSServiceProcessResult(browseRef) DNSServiceRefDeallocate(browseRef) } Any suggestions about how to debug this?
3
0
1.5k
Mar ’21
API for checking Network permissions
Hi guys, I watched the talk about adding support for local network privacy permissions in iOS 14. I can't understand if there is a way to check if user has denied the local network privacy permission. I need it so that when the permission is denied I can suggest the user to enable it in order to use the function in the app. Is there an API I can use or is there any suggestion you have on how to deal with this situation? Thank you. Giohn
1
0
1.1k
Jan ’21
How to deal with local network changes (NSLocalNetworkUsageDescription) on iOS14 ?
Our application connects to a local WiFi (using TCPClient) for data communication purposes. But in iOS 14 the connection fails completely because two processes take place at the same time: TCP client initialization Current network permissions. So the connection to the local network is blocked until we reopen the application. To avoid this, we're doing a hack: Pinging to a local IP address triggers the current network permissions (this is done in the OnAactivated() method of AppDelegate). The connection only works properly if it is connected to that particular network otherwise it fails. Has anyone faced this issue before?
1
0
740
Jan ’21
First update in NWBrowser.stateUpdateHandler is always .ready
We are using NWBrowser.State to check to for NWError.dns(DNSServiceErrorType(kDNSServiceErr_PolicyDenied)) to identify if the user has granted local network privacy permission, which was introduce with iOS14. This works fine so far but we are seeing that the first update in NWBrowser.stateUpdateHandler after nwBrowser.start is always ready. To overcome this and not respond to a false-positive, we currently need to debounce this first value. Is this the expected behaviour or a Bug in NWBrowser?
1
0
1.6k
Nov ’20
How to check if user has given permission to access local network?
Hello, since we should avoid the appearance of the permission popup at launch, we are planning to ask the user specifically at a later point in time. If the user has given permission and launches next time, we can browse for Bonjour services at launch. How can we check on launch if the user has given permission or whether we need to ask the user again?
7
0
6k
Nov ’20
UDP connection working smoothly on iOS 14.0.1 in debug
Hello, from 3 years I'm working on an app for radiators remote control. The first step is to connect the radiator to the network and it works through these steps: connect the iPhone to the radiator WiFi network through udp connection I'm going to receive address and port from radiator then I can send commands to connect the radiator to home WiFi On iOS 14.0.1 I receive address and port from radiator just relaunching the app with Xcode otherwise I'm not able to retrieve these informations. On iOS 14.2 (Beta) it looks working well (like iOS 13 and 12). I'm using BlueSocket library to manage the socket. Did someone noticed this issue? Thank you in advance.
12
0
2k
Oct ’20
iOS 14: Grant 'Local Network Permission' for Managed App through MDM
With iOS 14 , App ask for new permissions to access Local Network information , when user does not approve this permission this causes some functionality to break . Do we have plans to pre approve the permissions for Managed Apps thats are distributed by MDM. There are lot of IT support when end users do not give this permission . Our Apps has handled it gracefully educating users , but it has not went good so far. I understand Apple has not given MDM , the APIs to enable App permissions such as Location and also i get the tradeoffs between user experience and privacy/security . It would be good if MDM can approve Local network permission for Apps like it has control for Notification alerts.
1
0
1.7k
Oct ’20
URLSession dataTaskWithRequest
I have an app that searches for SSDP services on a local network and sends commands over http using URLSession. I know i need the new privacy entitlement to discover devices on the network so for now i have manually entered the device IP address that i want to send commands to but I'm getting the following time out error in the debug log when i send a request using URLSession dataTaskWithRequest Task <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 The request timed out. UserInfo={kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x283983240 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 (null) UserInfo={kCFStreamErrorCodeKey=-2102, kCFStreamErrorDomainKey=4}}, NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1>, NSURLErrorRelatedURLSessionTaskErrorKey=( LocalDataTask <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1> ), NSLocalizedDescription=The request timed out., NSErrorFa
7
0
4.2k
Oct ’20
When do we need the new com.apple.developer.networking.multicast entitlement?
My team maintains a (proprietary) communication library that allows other developers in our company to write Apps that communicate with devices on the local network. To discover these devices we currently use SSDP, for which we use broadcasting on IPv4 and multicasting on IPv6. Thus, we expect that we will need the new com.apple.developer.networking.multicast entitlement on iOS 14 (for the short term; we consider migrating to Bonjour later - that requires rewriting the firmware for those devices). We have installed iOS 14.0 Beta 3 (18A5332f) on an iPhone XS (model A2097) and performed these two tests: Xcode 11.6 (11E708) / iOS 13 (Enterprise) build: we get the local network privacy dialog (with the default reason text) and after that discovery works, as expected - https://developer.apple.com/forums/thread/653139 Xcode 12.0 beta 3 (12A8169g) / iOS 14 (Debug) build, without the new entitlement: we again get the local network pricacy dialog (with the reason we put in Info.plist) and after that discovery still wo
15
0
5.4k
Oct ’20
MultipeerConnectivityFramework not working due to new privacy setting
I was using MCFramework with no problem but now that Im building with Xcode 12 and iOS 14, when I try to start advertising Im getting a 72008 NSNetServicesErrorCode. I search the error and it says that Im missing the Local Network Usage Description. I've already added the Local Network Usage Description in my plist and I don't know what should I add in Bonjour Services key (Documentation is not clear when using Multipeer framework). Also the method browser(_ browser: MCNearbyServiceBrowser, didNotStartBrowsingForPeers error: Error) is marked as optional but If I don't implement it my app crashes.
4
0
2.7k
Oct ’20