i'm creating a pass generator using PHP-PKPass. Everything is working fine until i try to add dateStyle. When I put
'auxiliaryFields' => array(
array(
'key' => 'expires',
'label' => 'Expiration Date',
'dateStyle'=> 'PKDateStyleFull',
'timeStyle'=> 'PKDateStyleNone',
'value' => $expires.'T12:00+6.00'
)
)
the pass is created, working on android, but from iphone while trying to download it shows 'can't download from safari'... here is the generated pass - Pass (not working on iphone)
but if i remove 'dateStyle' and 'timeStyle' part -
'auxiliaryFields' => array(
array(
'key' => 'expires',
'label' => 'Expiration Date',
'value' => $expires.'T12:00+6.00'
)
)
the pass is created and working on both android and iphonne... here is the generated pass - Pass (working)
what is causing the problem?
Further to the info in the comments, your date is still not in a valid ISO 8601 format.
Change the date to display in the Year-Month-Day format, E.g.
2015-06-29T12:00+06:00and you should find it works.