Requesting access to accounts fails under iOS 6 Simulator
| Originator: | dloewenherz | ||
| Number: | rdar://11789616 | Date Originated: | 7/3/12 |
| Status: | Behaves correctly | Resolved: | Yes |
| Product: | iPhone SDK | Product Version: | 6.0 |
| Classification: | Serious Bug | Reproducible: | Yes |
Summary: ACAccountStore's method requestAccessToAccountsWithType:options:completion doesn't work in the iOS 6 simulator, and the completion method is never called. No error is thrown either.
Steps to Reproduce:
1) Initialize an ACAccountStore and an ACAccount for Facebook.
2) Use code similar to below.
ACAccountType *fbAccountType = [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
NSDictionary *options = @{
ACFacebookAppIdKey: @"1234567890",
ACFacebookPermissionGroupKey: @"write",
ACFacebookPermissionsKey: @[@"publish_stream"]};
[self.accountStore requestAccessToAccountsWithType:fbAccountType
options:options
completion:^(BOOL granted, NSError *e) {
NSLog(@"Completed!");
}];
Expected Results:
Window appears that asks the user to authenticate with an account and the completion method is called.
Actual Results:
No window appears and the completion method is not called.
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!
NDA
This shouldn't be on Open Radar because the product in question was under NDA.
There remains issues with this (http://www.openradar.me/radar?id=2967401) but you should also note that ACFacebookPermissionGroupKey and ACFacebookAppVersionKey are now obsolete. See https://developer.apple.com/library/ios/#releasenotes/General/RN-iOSSDK-6_0/
Reproduced on iPad 2 iOS 6.0 and simulator 6.0 (358.4)
Reproduced bug on iOS Simulator 6.0 GM and iPhone 4S with iOS 6.0 GM
Reproduced on iPod touch 4g