How I get "deviceLibraryIdentifier" to Registering a Device to Receive Push Notifications for a Pass

We are getting pass from server and adding these passes into wallet app by using PKAddPassViewController when user clicks on Add Button.


POST /v1/devices/070ddefaed0cdc4bedfe5e46b4ba7e20/registrations/pass.com.apple.test/123456


Does IOS app send this http request automatically when we add pass into wallet ? Or we need hit above api from IOS app ?


Please help how I get deviceLibraryIdentifier to Registering a Device to Receive Push Notifications for a Pass using below request:


POST request to webServiceURL

/
version
/devices/
deviceLibraryIdentifier
/registrations/
passTypeIdentifier
/
serialNumber.


Yes, as long as you inserted the correct web service URL ;-) into the pass JSON, the device will add its device identifier just by itself:

Usually giving it a try just after the user added the pass to her wallet – to verify the web service being available and the pass still being valid.


To help it run smoothly: When your web service root URL is called WITHOUT any parameters, it may help to reply with an HTTP 200; just telling it’s up and working.

How I get "deviceLibraryIdentifier" to Registering a Device to Receive Push Notifications for a Pass
 
 
Q