2

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? :(

Community
  • 1
  • 1
Philipp Li
  • 499
  • 6
  • 22
  • If you found the answer answer your own question and mark it as correct so it's no longer in the unanswered section – Chris Loonam Mar 15 '13 at 10:47
  • Users with less than 10 reputation can't answer their own question for 8 hours after asking. So I will answer in 7 hours. ;) – Philipp Li Mar 15 '13 at 10:56
  • the reason for this behavior is described on http://stackoverflow.com/questions/14017551/how-to-access-passes-from-passbook-in-my-app/14026170#14026170 – Philipp Li Mar 24 '13 at 20:08
  • @PhilippLi I had the same issue, How could you achieve ? I have seen the above link, And also followed it, Still not working, Could you please know me the steps of it ? – Solid Soft Jan 28 '15 at 09:28

0 Answers0