After enabling Declarative Management device never fetches `declaration-items`

I started implementing Declarative management but encountered the following issue in both iOS 15.5 User Enrollment and iOS 16 beta Device enrollment (have not been able to test in macOS)

After sending the Enable Declarative Management command to the device for the first time with the data field empty (no SyncTokens) device responds fine to command Acknowledge but device then calls the checking endpoint 3 times:

  1. Endpoint -> Status
  2. Endpoint -> Tokens
  3. Endpoint -> Tokens

Documentation and WWDC 2021 meet declarative management says that the first endpoint it should request be declaration-items but this never happens.

Answered by cruiz1391 in 722008022

Got it working!

Essentially I had a problem with the format of the date-time field when responding to the Tokens endpoint that was silently failing and causing the device to call the same endpoint twice without any errors

Accepted Answer

Got it working!

Essentially I had a problem with the format of the date-time field when responding to the Tokens endpoint that was silently failing and causing the device to call the same endpoint twice without any errors

After enabling Declarative Management device never fetches `declaration-items`
 
 
Q