Adopt declarative device management

RSS for tag

Discuss the WWDC22 Session Adopt declarative device management

Posts under wwdc2022-10046 tag

3 Posts
Sort by:
Post not yet marked as solved
0 Replies
84 Views
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.
Posted
by cruiz1391.
Last updated
.
Post not yet marked as solved
1 Replies
107 Views
Good day I've recently started playing with declarative management and I am not getting events reported. I am specifically interested in app installation status as shown at WWDC22. This is reported on the status endpoint after sending the DeclarativeManagement command and at some other random points (doesn't seem to be tied to any action on the device like adding or removing managed apps as I would expect). The device has fetched both my activation and subscription and the status for each shows active and valid. Can you see anything below that's missing? Are there any logs on device that may be helpful to see why it isn't firing off a status update when a managed app is added/removed as an example? I've tried watching logs in AC2 but couldn't see anything reported. All status reports look like this: { "StatusItems" : { "management" : { "declarations" : { "activations" : [ { "active" : true, "identifier" : "49F6F16A-70EB-4A89-B092-465FAEC5E550", "valid" : "valid", "server-token" : "ec26144b-8ece-54a6-aac0-8efc2a8b334d" } ], "configurations" : [ { "active" : true, "identifier" : "85B5130A-4D0D-462B-AA0D-0C3B6630E5AA", "valid" : "valid", "server-token" : "59eb13b9-5d51-54b9-8a4b-e8abe37c27ee" } ], "assets" : [ ], "management" : [ ] }, "client-capabilities" : { "supported-versions" : [ "1.0.0" ], "supported-payloads" : { "declarations" : { "activations" : [ "com.apple.activation.simple" ], "assets" : [ "com.apple.asset.credential.userpassword", "com.apple.asset.useridentity" ], "configurations" : [ "com.apple.configuration.account.caldav", "com.apple.configuration.account.carddav", "com.apple.configuration.account.exchange", "com.apple.configuration.account.google", "com.apple.configuration.account.ldap", "com.apple.configuration.account.mail", "com.apple.configuration.account.subscribed-calendar", "com.apple.configuration.legacy", "com.apple.configuration.legacy.interactive", "com.apple.configuration.management.status-subscriptions", "com.apple.configuration.management.test", "com.apple.configuration.passcode.settings" ], "management" : [ "com.apple.management.organization-info", "com.apple.management.properties", "com.apple.management.server-capabilities" ] }, "status-items" : [ "account.list.caldav", "account.list.carddav", "account.list.exchange", "account.list.google", "account.list.ldap", "account.list.mail.incoming", "account.list.mail.outgoing", "account.list.subscribed-calendar", "device.identifier.serial-number", "device.identifier.udid", "device.model.family", "device.model.identifier", "device.model.marketing-name", "device.operating-system.build-version", "device.operating-system.family", "device.operating-system.marketing-name", "device.operating-system.version", "management.client-capabilities", "management.declarations", "mdm.app", "passcode.is-compliant", "passcode.is-present", "test.array-value", "test.boolean-value", "test.dictionary-value", "test.error-value", "test.integer-value", "test.real-value", "test.string-value" ] }, "supported-features" : { } } }, "device" : { "operating-system" : { "version" : "16.0", "family" : "iPadOS", "build-version" : "20A5283p" }, "model" : { "family" : "iPad" }, "identifier" : { "udid" : "****7958f683a***********00a7b1b********", "serial-number" : "F9FW********" } } }, "Errors" : [ ] } This is my activation: { "Identifier": "49F6F16A-70EB-4A89-B092-465FAEC5E550", "Type": "com.apple.activation.simple", "Payload": { "StandardConfigurations": ["85B5130A-4D0D-462B-AA0D-0C3B6630E5AA"] }, "ServerToken": "ec26144b-8ece-54a6-aac0-8efc2a8b334d" } And this is the subscription: { "Identifier": "85B5130A-4D0D-462B-AA0D-0C3B6630E5AA", "Type": "com.apple.configuration.management.status-subscriptions", "Payload": { "StatusItems": [{ "Name": "device.identifier.serial-number" }, { "Name": "device.identifier.udid" }, { "Name": "device.model.family" }, { "Name": "device.model.identifier" }, { "Name": "device.model.marketing-name" }, { "Name": "device.operating-system.build-version" }, { "Name": "device.operating-system.family" }, { "Name": "device.operating-system.marketing-name" }, { "Name": "device.operating-system.version" }, { "Name": "management.client-capabilities" }, { "Name": "management.declarations" }, { "Name": "passcode.is-compliant" }, { "Name": "passcode.is-present" }, { "Name": "mdm.app" }] }, "ServerToken": "59eb13b9-5d51-54b9-8a4b-e8abe37c27ee" } Any direction would be appreciated.
Posted
by alivesey.
Last updated
.