Post

Replies

Boosts

Views

Activity

Reply to CNCopySupportedInterfaces() returns NULL
Found this in the <NetworkExtension/NEHotspotNetwork.h> header: @method fetchCurrentWithCompletionHandler:completionHandler: @discussion This method returns SSID and BSSID of the current Wi-Fi network when the requesting application meets one of following 4 requirements:  1. application is using CoreLocation API and has user's authorization to access precise location. 2. application has used NEHotspotConfiguration API to configure the current Wi-Fi network. 3. application has active VPN configurations installed. 4. application has active NEDNSSettingsManager configuration installed. - - - So be it... But you'd think there'd be a simpler way just to get the SSID string!
Jun ’21
Reply to iOS app data files preinstalled into sandbox?
Okay, I found the files in: /private/var/containers/Bundle/Application/26FA4220-0E34-43EF-AC23-0F46CABF906E/.app/dataset1.dat And I understand now that such "project" files don't go into the ../Documents folder. Q: Can my app modify the file contents in the main bundle? Or would it have to copy the file from the main bundle into the sandbox and then modify/update it?
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’22
Reply to NSURLResponse object HTTP header values
Is the -valueForHTTPHeaderField: method not working for you? I tried that but Xcode didn't allow it, as NSURLSessionDownloadTask.response is a NSURLResponse object not a NSHTTPURLResponse object (which responds to -valueForHTTPHeaderField:) . However, I did cast the types and got it work work: NSDictionary *responseHeaders = ((NSHTTPURLResponse *)downloadTask.response).allHeaderFields; So that does work, thank you! But the file being downloaded is a .gz file. Is there a way in iOS to uncompress it programmatically?
Topic: App & System Services SubTopic: General Tags:
Oct ’22