Passbook / Wallet pkfile Android Auto-Update
<p>I am currently working on a pkpass library for Android. There is one point that I cannot figure out. The <a href="https://developer.apple.com/library/ios/documentation/PassKit/Reference/PassKit_WebService/WebService.html#//apple_ref/doc/uid/TP40011988" rel="nofollow">Apple's PassKit Web Service Reference</a> specifies how to register a device for automatic updates. This seems to work only with iOS devices.</p>

<p>However, there are a couple of apps out there for Android that are able to register for automatic updates somehow. <a href="https://play.google.com/store/apps/details?id=io.walletpasses.android" rel="nofollow">Wallet Passes | Passbook</a> and <a href="https://play.google.com/store/apps/details?id=com.passesalliance.wallet" rel="nofollow">Pass2U Wallet for Passbook</a> for instance.</p>

<p>I created a demo pkpass file using <a href="https://www.passsource.com/client/" rel="nofollow">PassSource's API</a>. When I update the file on their website, those apps get notified somehow and then show a notification to the user.</p>

<p>This is the behavior I'm trying to create but I cannot figure out for the life of me is what URL with which parameters to call.</p>

<p>I tried every possible combination of values for:</p>

<pre><code>POST request to: webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier/serialNumber

Parameters

webServiceURL
The URL to your web service, as specified in the pass.
version
The protocol version—currently, v1.
deviceLibraryIdentifier
A unique identifier that is used to identify and authenticate this device in future requests.
passTypeIdentifier
The pass’s type, as specified in the pass.
serialNumber
The pass’s serial number, as specified in the pass.
Header

The Authorization header is supplied; its value is the word ApplePass, followed by a space, followed by the pass’s     authorization token as specified in the pass.

Payload

The POST payload is a JSON dictionary containing a single key and value:

pushToken
The push token that the server can use to send push notifications to this device.
</code></pre>

<p>as specified on the apple documentation.</p>

<p>I also studied <a href="https://walletpasses.io/developer/" rel="nofollow">Walletpasses Documentation</a> and <a href="https://www.pass2u.net/documentation" rel="nofollow">Pass2U Documentation</a></p>

<p>Help is greatly appreciated!</p>

<p>Thanks!</p>