passbook

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

IOS / PASSBOOK: Download a file (.pkpass) from dynamic link from IOS webview

别说谁变了你拦得住时间么 提交于 2019-12-25 08:22:04
问题 I’m developing a simple IOS app. It’s a webview with navigation buttons that allows the user to navigate into my web. I’m programming at Xcode 8.2.1 (Objetive C) with a universal device target. In one of my URLs I show a dynamic link (that changes at each session) to allow the user to download a PDF file, and another dynamic link to download a PassBook (pkpass file). When the user selects the first button the pdf is correctly shown, but when the second button is selected nothing happens. I

How to use 'changeMessage' key in pass.json

限于喜欢 提交于 2019-12-24 16:13:17
问题 I am doing push notification for updating a pass. I can send pushToken to APNs. What about changeMessage key ? How to make it ? How to use it ? 回答1: To use the changeMessage key, you just add it to your JSON dictionary. Then when a new .pkpass bundle is received, if the new field value is different to the value in the old .pkpass bundle, the change message will trigger. If you add %@, then this will be replaced with the new value "auxiliaryFields" : [ { "key" : "rewards", "label" : "Reward

APNS server responds with status 8-invalid-token, but devices are being registered properly

坚强是说给别人听的谎言 提交于 2019-12-24 08:30:26
问题 I am implementing passbook funcationality for my iOS app. I am using php as server side language to generate pass and distribute to devices. Passes are being successfully installed on the device and I am also able to update pass manually using pull to referesh. When I try to update pass automatically from server side I get the response status 8-invalid-token with message "Identifier is the rowID(index) in the database that caused the problem. Apple will disconnect you.....". I don't get why

How can I add values to the pass using Passslot?

匆匆过客 提交于 2019-12-24 07:32:42
问题 I'm integrating Passlot in my app for wallet integration. I'd created new pass type id and added it in Passslot. I'd created a pass template for type - boarding pass as below, And in my app, i'm creating the pass with the above template and a dictionary with values, NSDictionary *values = [NSDictionary dictionaryWithObjectsAndKeys: @"14", @"gate" , @"India", @"depart" , @"UAE", @"arrive" , @"2:25 PM", @"boardingTime", @"Air India", @"flightNewName" , @"first", @"class", @"7/22", @"date" , @

SplFileObject error failed to open stream: No such file or directory

杀马特。学长 韩版系。学妹 提交于 2019-12-24 04:24:08
问题 i am trying to implement passbook web service in symfony2 and following this passbook bundle and my controller looks like this if ($form->isValid()) { // Create an event ticket $pass = new EventTicket("1234567890", "The Beat Goes On"); $pass->setBackgroundColor('rgb(60, 65, 76)'); $pass->setLogoText('Apple Inc.'); // Create pass structure $structure = new Structure(); // Add primary field $primary = new Field('event', 'The Beat Goes On'); $primary->setLabel('Event'); $structure-

How to designate a downloadable file's content type

北城以北 提交于 2019-12-24 03:40:35
问题 This SO answer applies to me, but I don't know how to "change the content type to application/vnd.apple.pkpass" Currently a direct link to my pkpass triggers a download and I don't know where to set the content type. I have asked my hosting provider to verify that "application/vnd.apple.pkpass" is a supported MIME type I have tried What can I do to make the file recognized as the "application/vnd.apple.pkpass" when the link is clicked from iOS 6 or Mac OS 10.8? 回答1: You need to change the web

Receiving Passbook's .pkpass from URL without Webview

痞子三分冷 提交于 2019-12-23 12:30:46
问题 Hi first of all i have to confess i really don't understand how the whole Passbook topic really works. So here's my situation: I have a backend system which creates .pkpass files stores them and creates an URL. When i open this URL in my browser it directly starts to download the pass file. How can i receive or open this file with my ios application? Thanks in advance. 回答1: You can use webservices to get pass data. Webservices can send your pass data in base64(NSString) format and you decode