Apple Wallet Not Auto Updating Pass

Finally im able to push new changed compiled bundle. There is one issue im facing in order to see new changes. i have to go in my wallet card & disable "Automatic updates" then enable. then i can see my new compiled pass card.



$result = $pdo->query($query); if($result->rowCount() > 0) { $myPass = $result->fetch(); $data = $myPass['data']; $nameFile = 'passbook_'.time().'.pkpass'; file_put_contents($nameFile, $data); $stream = function () use ($nameFile) { readfile($nameFile); }; return $app->stream($stream, 200, array( 'Content-Type' => 'application/vnd.apple.pkpass', 'Content-length' => filesize($nameFile), 'Content-Disposition' => 'attachment; filename="passbook.pkpass"', 'Last-Modified' => gmdate('D, d M Y H:i:s T') ));

compiled pass =

$myPass['data'];
.


please advice what im missing here.


2nd issue how can i show new updates in lock screen ? i think i have to send this but little confuse where should i add this line in "pass.json" ? or should i send this in push notification?.


{ "key":"header", "value":"More discount 50% off", "changeMessage": "%@" }


Device logs:

`''copyTokenForDomain push.apple.com (null) ''<APSPushHistory: 0x10032cda0> timestampForTopic? pass.mydomain.com.test token <457857at edfe75e3 a34af482> ''copyTokenForDomain push.apple.com ,66ffffffeeeeefebfffffff6ffffffef33ffffffb12aff ''<APSPushHistory: 0x10032cda0> timestampForTopic? pass.mydomain.com.test token (null) ''<APSPushHistory: 0x10032cda0> receivedPushWithTopic pass.mydomain.com.test token <457857at edfe75e3 a34af482 32700f1b 78677add> payload <7b226170 73223a7b 22616c65 > timestamp 2017-07-03 22:43:37 +0000 ''<APSCourier: 0x100412200>: Received message for enabled topic 'pass.mydomain.com.test' with payload '{ aps = { alert = ""; "link_url" = ""; sound = ""; }; }' onInterface: WWAN for device token: YES with priority (null) ''<APSCourier: 0x100412200>: Calling into AWD for PushReceived ''<APSCourier: 0x100412200>: AWD for PushReceived finished ''<APSCourier: 0x100412200>: Stream processing: complete no, invalid no, length parsed 0, parameters (null) ''APSMessageStore - New message record [<APSIncomingMessageRecord 0x100348460 [0x1ad112bb8]>{}] has ID [47675]. ''<APSMessageStore: 0x1003a8dc0> calling completion block for incoming message 9865157-C23-4588-9609-18108gg535gc ''<APSCourier: 0x100412200>: Sending acknowledgement message with response 0 and messageId <00000000> (0) ''<APSCourier: 0x100412200> _notifyForIncomingMessage <APSIncomingMessage: 0x1003463e0> with guid 9841C157-C1DF-4535-9609-181039C635gc ''Dispatching high priority message: <OS_xpc_dictionary: <dictionary: 0x1003a91f0> { count = 2, transaction: 0, voucher = 0x0, contents = "message" => <dictionary: 0x1003ef810> { count = 1, transaction: 0, voucher = 0x0, contents = "ECF19A18-7AA6-4141-B4DC-" => <data: 0x1003a6f50>: { length = 16384 bytes, contents = 0x62706c69xxxxxx10100667.. } } "message-type" => <int64: 0x100348460>: 30 <92a9544f 909b4530 785e283b > = "pass.com.mydomain.com"; `