I've been trying several links to download pkpass from server but whenever i download it it shows me the size of file "0 kb", due to this i cannot convert it to pkpass data. is there any other way for dynamic pkpass ? or some other way to download and load it to wallet ?
is it doing because pkpass contain certificates and private information thats why it's not downloading ?
I cannot find any way to integrate dynamic pkpass in app using swift 4.2 or above.
the links I've been using but none of it works
-> Downloading PKPass in an iOS custom app from my server
Finally got a solution to get pkpass from server by: -> simply get base64 string from api response -> convert that base64 to to Data like this below
-> then convert Data to PKPass like this below
Note: add import PassKit and PKAddPassesViewControllerDelegate in your controller.