PassKit

FREE
By passkit | Updated 13日前 | Commerce
Health Check

N/A

Back to All Discussions

Questions in behalf of Yasmeen @ cognizant

Rapid account: Mashaper
mashaper
10年前
  1.   How can I pass the serialNumber, latitude, longitude etc.  while creating the pass.
    

( Is this the right approach I am following as below

https://passkit-passkit.p.mashape.com/pass/issue/template/TestTemplate/?labelColor=33CC99&serialNumber=123456789&relevantDate=2013-11-06T00:00:00+08:00&foregroundColor=99FF33&backgroundColor=993366&location1address=Manyata&location1latitude=12.9833&location1longitude=77.5833&location1locationAlert=You Are Here")

  1.   Where I can see serial number  that I have passed is in sync with the response.
    
  1.   I got the response for the above request as
    

{ shareID":" 2ltoL6U4518zV2SgSaf7IW",“passbookSerial”:“t6m7VgtSNuYeQoP40r4n”,“uniqueID”:“4dgncLcbvL6G”,“serial”:“3273658027307183”,“success”:true,“url”:"https://r.pass.is/4dgncLcbvL6G”

When compare to request serial number and response serial number mismatch is there. I am I referring correctly?

  1.   Kindly let me know where I can see the attributes such as serialNumber, latitude, longitude in pass.
    
  1.   Also label color is not reflecting in the pass even though I have passed in query String  as labelColor attribute.
    

Thanks,
Yasmeen

Rapid account: Dannyallen
dannyallen Commented 10年前

Hi Yasmeen,

I have tested the issue pass method with the parameters you are using, and got a successful response as follows…

{
“success”: true,
“serial”: “123456789”,
“url”: “https://r.pass.is/edCn478TX8OG”,
“passbookSerial”: “6GY7jQX3vk2jZjvlvKhx”,
“shareID”: “7dlqcGZtRKFVig3RISxPMj”,
“uniqueID”: “edCn478TX8OG”
}

If you also follow the recovery url (https://r.pass.is/edCn478TX8OG) you will also see the label colours have been applied.

I have also verified that the location data has been set correctly.

One thing have noticed is that you are specifying a relevant time for the pass, however the template is set as a 'Coupon" type template which does not support a relevant time setting. Please see table 3-2 here for more information - https://developer.apple.com/library/ios/documentation/userexperience/conceptual/PassKit_PG/Chapters/Creating.html

In the case where the the serial number is different to the one you have specified in the issue pass method, please check that the serial number has been set to be ‘provided at pass creation’ in the pass designer. You can display the pass serial number anywhere on the pass using the shortcode %s in any field. You are also able to set the serial number to display under the barcode in the pass designer.

Hope this helps, please feel free to contact PassKit support if you have any questions or need further assistance - http://support.passkit.com or email support@passkit.com

Regards

Danny

Join in the discussion - add comment below:

Login / Signup to post new comments