I am looking for a way to determine if this is a device polling.

When device polling occurs in the link below, is there a way to determine from the requests received on the server side whether the request was device polling?

https://developer.apple.com/documentation/devicemanagement/implementing_device_management/handling_notnow_status_responses#3690890

Or can I add a specific parameter when the MDM server instructs the APNs so that the device sends the request to the MDM server with that parameter included?

If this is possible, we think we can determine if the request is a polling request.

Answered by Device Management Engineer in 778227022

Polling after a NotNow response contacts the server URL again, and doesn't distinguish the request as polling.

A typical MDM server implementation keeps a list of queued commands for each device and sends those commands when the device requests commands. If the command is successful it is removed from the queue, and then the server moves on to the next command. Commands which receive a NotNow response remain queued. This mechanism works the same whether the request came in response to an MDM push or polling after a NotNow response. With this typical design, it's not necessary for the MDM server to know what triggered a request for commands

Accepted Answer

Polling after a NotNow response contacts the server URL again, and doesn't distinguish the request as polling.

A typical MDM server implementation keeps a list of queued commands for each device and sends those commands when the device requests commands. If the command is successful it is removed from the queue, and then the server moves on to the next command. Commands which receive a NotNow response remain queued. This mechanism works the same whether the request came in response to an MDM push or polling after a NotNow response. With this typical design, it's not necessary for the MDM server to know what triggered a request for commands

Thank you for your great answer!

I am looking for a way to determine if this is a device polling.
 
 
Q