Merge pull request #121 from chadj/issue_90_fix

Additional clientContext data for iphone play sound call.

Fixes picklepete/pyicloud#90
This commit is contained in:
Tor Arne Vestbø 2017-02-11 15:54:49 +01:00 committed by GitHub
commit f9a9818d03

View file

@ -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,