BFF Academy · Pro course Pro course

Partner Sync specs

about 25 minutes Reference Section 10 of 11

Reliability, keys, and testing

Reliability:

  • The summary POST is sent in the foreground. After a network error or a 5xx response, BFF Pro waits 2, 10, and then 30 seconds and tries again each time. It's never retried after a 4xx.
  • The video PUT is an iOS background upload.
    • It carries on if the fitter leaves BFF Pro or the iPad sleeps.
    • iOS resumes it when the network comes back.
    • BFF Pro shows its progress and the result.
  • If the fitter force-quits BFF Pro, iOS cancels the upload. At the next launch, BFF Pro tells the fitter and offers to finish the send. It uploads the video again from the start. If the upload URL has expired, it first sends the summary again for a fresh receipt.
  • An expired upload URL: BFF Pro sends the summary again for a fresh receipt and then uploads again.
  • Resend: the fitter can resend any session. A resend has a new push_id and the same session.id, so you can replace your earlier copy rather than count it twice.
  • Video size:
    • The video can be up to 1 GB. Azure accepts up to 5,000 MiB in a single PUT.
    • A Video Report is 1080p H.264 at 60 fps. Most run to tens of megabytes: about 2.3 MB a page and 3.7 MB a comparison. A moving video adds more for its length.
  • The fitter sees the outcome: sent and when or not sent and why. Nothing is ever sent automatically.

Keys and authentication:

  • HTTPS only. BFF Pro refuses an http:// URL.
  • The key goes in the URL.
    • This suits Azure Functions. Their function keys go in the URL as ?code=<key>.
    • The fitter enters one URL for each half.
  • BFF Pro treats each URL like a password:
    • it's kept in the iPad's Keychain;
    • it's never written to logs, crash reports, or exports.
  • A key in a header: Azure also accepts its key in an x-functions-key header, so a later version could accept a key sent as a header.
  • The upload URL carries its own short-lived permission, so your key is never used for the video.
  • Every request carries User-Agent: BFF Pro/<version>. The send also carries X-BFF-Push-Id.

Testing the Session Summary URL. The fitter can test the Session Summary URL before using it. BFF Pro sends an example summary like the one in An example summary with "test": true and no video. Then it shows the fitter your full response (the HTTP status and the body) beside its own checks of the receipt. Answer a test as you would any send. You needn't keep the summary. Testing the Riders URL is in What BFF Pro does with the list.

Was this section helpful?
Tell us more