How can I pass the serialNumber, latitude, longitude etc. while creating the pass.
( Is this the right approach I am following as below
Where I can see serial number that I have passed is in sync with the response.
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?
Kindly let me know where I can see the attributes such as serialNumber, latitude, longitude in pass.
Also label color is not reflecting in the pass even though I have passed in query String as labelColor attribute.
Thanks,
Yasmeen
加入讨论 - 在下面添加评论:
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