reloadContentBlockerWithIdentifier doesn't work on physical device
| Originator: | chris.bettin | ||
| Number: | rdar://21428705 | Date Originated: | 17-Jun-2015 02:16 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 9.0 Beta |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Using reloadContentBlockerWithIdentifier on iOS 9.0 beta 1 works in Xcode 7 beta 1 Simulator, but not a physical device running iOS 9 Beta 1. Sample project https://github.com/bettin/BlockAnalytics Steps to Reproduce: 1. Build app with ContentBlocker Extension 2. Enable Safari extension 3. Edit blockerList.json and save 4. Rebuild app to device 5. App executes reloadContentBlockerWithIdentifier on launch 6. Open safari and notice the blocker hasn’t updated Expected Results: Expected the Safari extension rules to update to blockerList.json without manually changing on/off in Settings > Safari > Content Blockers. Actual Results: Safari Content blocker rules do not update. Console outputs the following error when using on a physical device when the rebuilt app launches. Optional(Error Domain=ContentBlockerErrorDomain Code=1 "The operation couldn’t be completed. (ContentBlockerErrorDomain error 1.)") Regression: Occurs on iPhone 5 physical device (iOS 9 beta 1). Safari content blocker rules update correctly on Xcode 7 beta 1 iPhone 5 simulator. Notes: Sample project https://github.com/bettin/BlockAnalytics
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
This is resolved in iOS 9 Beta 5.
Still doesn't work in beta 4. Duped radar (rdar://22016000)
same issue here and also in beta 2.. duped the rdar