Domanda

In iOS 7 Mobile Device Management, According to the documentation dated 6th July 2013, to indicate that you have no more commands, you send an empty dictionary with a 200 OK status code. However, when I do this, the device keeps sending 'Idle' commands back indefinitely. The only way to solve this was to send a 500 error code, but I don't find this clean at all. Can someone please help? Perhaps they came across the same problem?

È stato utile?

Soluzione

To solve this problem in IOS7 you should send response to device with 200 status and empty body not empty dict or json (response body must be zero bytes).

In IOS6, you should send empty dict like you said.

Altri suggerimenti

I believe you should send reply with empty body (vs empty dictionary)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top