passbook

How to create .pkpass file for apple wallet on serverside and get it on iOS side

丶灬走出姿态 提交于 2021-02-10 18:33:15
问题 Here I have created .pkpass file following this tutorial Manually the above approach is static What I want is to generate somehow the pkpass file on the server side and then open it from my iPhone/iPad device. 回答1: If you are asking only about the apple wallet pass creating process, you need to create some server-side API (like .net core or something similar) that will return bytes array (.pkpass file) with ContentType "application/vnd.apple.pkpass". Here it is an example. Interface example:

Apple Wallet: Is Push Token unique for each device?

感情迁移 提交于 2021-02-08 03:46:31
问题 I have made an implementation which i can create passes for apple wallet. Once the device registers with server will push token unique for this device or will change eventually in future? If yes, what are the reasons for that? 回答1: Yes - to help with privacy, the push tokens are regularly rotated - this may occurs at random, or with changes in hardware (user transferring to a new phone), or often with iOS upgrades. Your web-service API implementation will see this as a new registration

Can I create .pkpass dynamically from my iOS app?

纵饮孤独 提交于 2020-03-01 05:56:28
问题 I found this answer on stackoverflow which says it is possible to create .pkpass from iOS app but I really didn't find any code or anything to create that. I also checked on Apple developers page about Passbook and Passes. I know how to create static .pkpass by using bundle using this link. But what I want to do is dynamically create passes from my iOS app. Each passes will have different contents. I searched everywhere online. Most of the answers are in favor of creating web-server for

safari ios cannot open passbook pkpass

不想你离开。 提交于 2020-01-14 09:58:26
问题 I've seen already some topics on this subject, but havent been able to find the answer: Safari cannot open .pkpass files that I am sending as email attachemnts first I thought it might have something do with my settings, but then I found out that I also cant open example .pkpass from this website http://www.tomttb.com/test/pass/full_sample/ Both mine file and the example one have Content Type set to application/vnd.apple.pkpass On Android I am using PassWallet App, and it is possible to

How to set MIME type of application/vnd.apple.pkpass in order to share pass by link or email

隐身守侯 提交于 2020-01-09 05:06:36
问题 I just created an app and a pass, so I can add the pass to the PassBook in iPod, but I cannot share the pass by email or link from web server. From the documentation I read from Apple, I need to add a MIME type as application/vnd.apple.pkpass . However, I don't understand clearly what steps should I do. I don't know how to use MIME type. How should I add this MIME type in order to use pass from my web service? 回答1: Apache Add the following line to either: the .htaccess in the directory

Downloading PKPass in an iOS custom app from my server

孤街醉人 提交于 2020-01-03 03:06:31
问题 I've setup a server which returns a PKPass. If I copy the URL to the browser, a pass is shown (both in my Mac and in my iPhone). The code I'm using to download the pass is the following one: NSData *data = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:kAPIPass]]; if (nil != data) { PKPass *pass = [[PKPass alloc] initWithData:data error:nil]; PKAddPassesViewController *pkvc = [[PKAddPassesViewController alloc] initWithPass:pass]; pkvc.delegate = self; [self presentViewController

Downloading PKPass in an iOS custom app from my server

孤街醉人 提交于 2020-01-03 03:05:57
问题 I've setup a server which returns a PKPass. If I copy the URL to the browser, a pass is shown (both in my Mac and in my iPhone). The code I'm using to download the pass is the following one: NSData *data = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:kAPIPass]]; if (nil != data) { PKPass *pass = [[PKPass alloc] initWithData:data error:nil]; PKAddPassesViewController *pkvc = [[PKAddPassesViewController alloc] initWithPass:pass]; pkvc.delegate = self; [self presentViewController

passkit - pass not refreshing via push notification. (Server response was malformed)

半城伤御伤魂 提交于 2020-01-01 17:28:29
问题 I have successfully integrated passkit but I am facing issue when updating passbook via push notification. Notification successfully received to wallet but pass not updated. Following are steps which I have implemented: Used XMPP server (PHP). used this library in php to generate pass (https://github.com/tschoffelen/PHP-PKPass). I have replaced pass type and team identifier. Swift code to add pass to wallet. Pass successfully created and add to wallet. To refresh pass "pull to refresh" is

Sharing Passbook Passes .pkpass

自作多情 提交于 2020-01-01 06:54:08
问题 I created a simple demo passbook pass in iOS 6. I emailed it to myself and it works fine. Now I need to share it with people. I uploaded the .pkpass file to the server but safari is not able to recognize the file format or mime type and hence it does not download it. Any ideas how can I share it? 回答1: Safari should recognise these. I think you probably need to add the MIME type to your web server, so it knows how to present the file to visitors. Edit: the MIME type you need to add to your web

Cannot generate Apple Passbook signature

烈酒焚心 提交于 2020-01-01 03:37:18
问题 I am writing a shell script to automatically generate an Apple Passbook signature file from manifest.json using p12 certificate. Here is what I do: openssl pkcs12 -passin pass:"mypass" -in "mycert.p12" -clcerts -nokeys -out certificate.pem openssl pkcs12 -passin pass:"mypass" -in "mycert.p12" -nocerts -out key.pem openssl smime -passin pass:"mypass" -binary -sign -signer certificate.pem -inkey key.pem -in manifest.json -out signature -outform DER The first two functions work fine. At least