IOS 6 Passbook: open Passbook app from my app

I am creating an application related to the Passbook application. Basically, I create a boarding pass for an airline ticket and add it to Passbook. This part is working fine. But I want to open the Passbook application from my application to view the details of the passage.

I saw that Apple removed the URL scheme parameters. How can I achieve this?

+3
iphone ios6 passbook
source share
1 answer

I had the same problem, it worked well with the emulator, but it crashed on the device. 1 - Double check of rights 2 - I used this when _pass is already in the library:

if([_passLibrary containsPass:_pass]) { [[UIApplication sharedApplication] openURL:[[_passLibrary passWithPassTypeIdentifier:[_pass passTypeIdentifier] serialNumber:[_pass serialNumber]] passURL]]; } 

Use the same context to remove the pass:

 [_passLibrary removePass: [_passLibrary passWithPassTypeIdentifier:[_pass passTypeIdentifier] serialNumber:[_pass serialNumber]]]; 

Hope this helps.

+6
source share

All Articles