Post

Replies

Boosts

Views

Activity

Content Blocker state not updating
I have a content blocker in my app and in app I check to see if the content blocker is enabled. Since iOS 15.4 the is enabled does not change unless the app is killed and reopened. When the app is put into the background and the user goes to iOS Settings>>Safari>>Extensions and enables the Content Blocker then returns to the app, the content blocker state still returns isEnabled as false until the app is fully terminated and reopened. The same is issue occurs when disabling the content blocker (although in this scenario it returns isEnabled as true until the app is killed and reopened.) This worked fine on all versions of iOS up until 15.4 This is the code I am using: SFContentBlockerManager.getStateOfContentBlocker(withIdentifier: contentBlockerId, completionHandler: { (state, error) in             print("new ContentBlockerState - \(String(describing: state?.isEnabled))")         }) Is this an issue with iOS 15.4 or is there something else I have to do to get this working now.
2
0
689
Apr ’22
NEHotspotHelper causes Xcode to crash
I have been granted permission to use NEHotspotHelper and have generated a new provisioning profile with the HotspotHelper entitlement. I have manually installed the provisioning profile into my project and added the following to my entitlements file: <dict> <key>com.apple.developer.networking.HotspotHelper</key> <true/> </dict> I have made sure that my device is added to the provisioning profile and when I build to the device (or archive) then Xcode crashes. This crash has happened with Xcode 12.0.1, Xcode 12.1, Xcode 12.2 and Xcode 12.3 I have tried the usual tricks: Cleaned the build folder Deleted derived data Deleted xcuserdata Tried with a new (clean) project tried on a different Mac I get the following crash log from Xcode: Xcode crash log - https://developer.apple.com/forums/content/attachment/39943aac-fc78-464b-8809-8f4a91531210 Any suggestions on where I go next, I can build apps with Xcode automatically managed profiles or any other imported profile but as soon as I add NEHotspotHelper it crashes.
1
0
589
Dec ’20