Skip to content

[Feature design] Apple Wallet server-testing to send requests to the webServer URI #1

@alexandercerutti

Description

@alexandercerutti

The project should allow sending of the network requests, when online, to WebServer URL, if possible.

According to https://developer.apple.com/documentation/walletpasses, some concerns are rising in my mind. Apple Wallet Endpoints require the following piece of information:

  • deviceLibraryIdentifier
  • passTypeIdentifier
  • serialNumber

If the second and the third fields can be somehow generated or inserted by the user, my mind goes to the deviceLibraryIdentifier.
Can we generate an identifier that is as similar as possible to Apple Ones? Is this step needed, or we can use whatever type of string like a mocked / fake identifier?

The Endpoint we'll support will be:

  • POST /v1/devices/{deviceLibraryIdentifier}/registrations/{passTypeIdentifier}/{serialNumber} (registration -> Simulate Registration - this will create a listener for network requests for updates from the server 1)
  • DELETE /v1/devices/{deviceLibraryIdentifier}/registrations/{passTypeIdentifier}/{serialNumber} (Simulate deletion)
  • GET /v1/devices/{deviceLibraryIdentifier}/registrations/{passTypeIdentifier}?passesUpdatedSince={tag} (Simulate update if data changed (SHA-1 to compare them all?) if registration has been already done)

1 Might be needed a webserver with web socket for this, a web page / application is not able to listen for requests, so we must establish a listener for this purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions