Implementation
By default, when you use push notifications to send your passes, our library will handle your passes automatically. However you can always obtain a pass object and use it to display the passes in your own views.
This is done by simply invoking the following method:
[[NotificarePushLib shared] fetchPass:@"SERIAL_NUMBER" completionHandler:^(NotificarePass *pass) {
//Handle you pass object
} errorHandler:^(NSError *error) {
//Handle error
}];
NotificarePushLib.shared().fetchPass("SERIAL_NUMBER", completionHandler: {(_ pass: NotificarePass) -> Void in
//Handle you pass object
}, errorHandler: {(_ error: Error?) -> Void in
//Handle error
})