wallet

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

Swift PKPass eror 'The pass cannot be read because it isn’t valid'

谁说胖子不能爱 提交于 2020-05-17 07:04:56
问题 I'm creating a Ticket from my server and passing it into my ios app but I keep getting this error when I try to pass the JSON data into the PKPass model. Error Domain=PKPassKitErrorDomain Code=1 "The pass cannot be read because it isn’t valid. In my server it says that the ticket was created successfully and but I still get this error in Xcode. Am I decoding the data wrong? How can I create the PKPass using the JSON Response? Server Side code: exports.createTicket = functions.https.onRequest

Swift PKPass eror 'The pass cannot be read because it isn’t valid'

爷,独闯天下 提交于 2020-05-17 07:04:38
问题 I'm creating a Ticket from my server and passing it into my ios app but I keep getting this error when I try to pass the JSON data into the PKPass model. Error Domain=PKPassKitErrorDomain Code=1 "The pass cannot be read because it isn’t valid. In my server it says that the ticket was created successfully and but I still get this error in Xcode. Am I decoding the data wrong? How can I create the PKPass using the JSON Response? Server Side code: exports.createTicket = functions.https.onRequest

How to open a pkpass file to wallet from Xamarin Mobile application

寵の児 提交于 2020-01-25 08:55:08
问题 I have created pkpass file from server side and its working fine. I try to consume the pkpass via service and try to add the pass via PKAddPassesViewController. But it's not working. I have followed this resourse to add pass file to add wallet try { _oHttpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accesstoken); //this response is pkpass file HttpResponseMessage response = await _oHttpClient.GetAsync(new Uri(Constants.Urls.DigitalMembershipCardApple +

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

Apple Wallet Not Auto Updating Pass

醉酒当歌 提交于 2019-12-31 04:52:05
问题 Finally im able to push new changed compiled bundle. There is one issue im facing in order to see new changes. i have to go in my wallet card & disable "Automatic updates" then enable. then i can see my new compiled pass card. $result = $pdo->query($query); if($result->rowCount() > 0) { $myPass = $result->fetch(); $data = $myPass['data']; $nameFile = 'passbook_'.time().'.pkpass'; file_put_contents($nameFile, $data); $stream = function () use ($nameFile) { readfile($nameFile); }; return $app-

Can't push notification to APNS to update my pass in Apple Wallet

家住魔仙堡 提交于 2019-12-30 12:14:09
问题 I'm trying to push notification to APNS to update my pass in Apple Wallet app. According to this document, we only need to send the pass type identifier and the push token to APNs. Then they will take care of the rest. $apnsHost = 'gateway.push.apple.com'; $apnsPort = 2195; $apnsCert = base_path('app/config/passbook/certificates.pem'); $payload = ['aps' => []]; $payload = json_encode($payload); $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl', 'local

Can't push notification to APNS to update my pass in Apple Wallet

痞子三分冷 提交于 2019-12-30 12:14:08
问题 I'm trying to push notification to APNS to update my pass in Apple Wallet app. According to this document, we only need to send the pass type identifier and the push token to APNs. Then they will take care of the rest. $apnsHost = 'gateway.push.apple.com'; $apnsPort = 2195; $apnsCert = base_path('app/config/passbook/certificates.pem'); $payload = ['aps' => []]; $payload = json_encode($payload); $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl', 'local

Received invalid pass data while updating Apple Wallet Pass

半世苍凉 提交于 2019-12-25 09:47:46
问题 I have implemented all 5 endpoints in PHP and all seems working fine. But when I provide updated pass in response to web service Getting the Latest Version of a Pass( GET request to webServiceURL/version/passes/passTypeIdentifier/serialNumber ) the pass is not updated and in error log I am receiving following error. {"logs":["[2017-05-24 22:37:50 +0530] Get pass task (pass type pass.com.xxxx.xxxx, serial number 285527, if-modified-since (null); with web service url http://www.xxxx.com/xx/xx