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:
- Endpoint -> Status
- Endpoint -> Tokens
- Endpoint -> Tokens
Documentation and WWDC 2021 meet declarative management says that the first endpoint it should request be declaration-items but this never happens.