I am using PKPassLibrary to determine the count of passes in the passbook app.:
if ([PKPassLibrary isPassLibraryAvailable]) {
PKPassLibrary * passLib = [[PKPassLibrary alloc] init];
NSLog(@"Count of passes: %i", [passLib passes].count);
}
The output is always "Count of passes: 0" even when if there are some passes in the passbook, for example from www.coupons.com. I am developing on iPhone 4, iOS 6.1.2
Does anyone have the same problem?
EDIT: found the reason on How to access passes from passbook in my app? :(