From 200e00b37c1cf5a227f29e7c2f69130f18d77cdd Mon Sep 17 00:00:00 2001 From: Chad Johnson Date: Fri, 10 Feb 2017 16:51:36 -0600 Subject: [PATCH] Additional clientContext data for iphone play sound call - picklepete/pyicloud#90 --- pyicloud/services/findmyiphone.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyicloud/services/findmyiphone.py b/pyicloud/services/findmyiphone.py index 7cce1bc..9e15a8d 100644 --- a/pyicloud/services/findmyiphone.py +++ b/pyicloud/services/findmyiphone.py @@ -130,7 +130,13 @@ class AppleDevice(object): It's possible to pass a custom message by changing the `subject`. """ - data = json.dumps({'device': self.content['id'], 'subject': subject}) + data = json.dumps({ + 'device': self.content['id'], + 'subject': subject, + 'clientContext': { + 'fmly': True + } + }) self.session.post( self.sound_url, params=self.params,