I'm trying to send a new pass json data to my device to update my pass in Apple Wallet following the part "Getting the Latest Version of a Pass" in this document.
The new json data is exactly the same the json data that I used for creating the pass successfully, except the backgroundColor is changed from #3e7cc8 to #000000 (for testing) but I got the "Invalid json data" error all the time.
Here are the successful creating json data
{
"description":"description",
"formatVersion":1,
"organizationName":"organizationName",
"passTypeIdentifier":"passTypeIdentifier",
"serialNumber":"serialNumber",
"teamIdentifier":"teamIdentifier",
"foregroundColor":"#ffffff",
"backgroundColor":"#3e7cc8",
"labelColor":"#ffffff",
"barcode":{
"message":"d568866a45dfc010ac680a9d06e5a48feb9216a2",
"messageEncoding":"utf-8",
"format":"PKBarcodeFormatQR"
},
"logoText":"logoText",
"storeCard":{
"headerFields":[
],
"primaryFields":[
],
"secondaryFields":[
{
"key":"name",
"label":"",
"value":"Nick"
},
{
"key":"points",
"label":"",
"value":"0 Points"
}
],
"auxiliaryFields":[
],
"backFields":[
{
"key":"email",
"label":"Email",
"value":"hoangtrung.uit@gmail.com"
},
{
"key":"phone",
"label":"Phone",
"value":"+841689984964"
}
],
"locations":[
]
},
"authenticationToken":"authenticationToken",
"webServiceURL":"https://mydomain/passbook"
}
and the invalid updating json data
{
"description":"description",
"formatVersion":1,
"organizationName":"organizationName",
"passTypeIdentifier":"passTypeIdentifier",
"serialNumber":"serialNumber",
"teamIdentifier":"teamIdentifier",
"foregroundColor":"#ffffff",
"backgroundColor":"#000000",
"labelColor":"#ffffff",
"barcode":{
"message":"d568866a45dfc010ac680a9d06e5a48feb9216a2",
"messageEncoding":"utf-8",
"format":"PKBarcodeFormatQR"
},
"logoText":"logoText",
"storeCard":{
"headerFields":[
],
"primaryFields":[
],
"secondaryFields":[
{
"key":"name",
"label":"",
"value":"Nick"
},
{
"key":"points",
"label":"",
"value":"0 Points"
}
],
"auxiliaryFields":[
],
"backFields":[
{
"key":"email",
"label":"Email",
"value":"hoangtrung.uit@gmail.com"
},
{
"key":"phone",
"label":"Phone",
"value":"+841689984964"
}
],
"locations":[
]
},
"authenticationToken":"authenticationToken",
"webServiceURL":"https://mydomain/passbook"
}
What's wrong with my updating json data? Please help.