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:
commit
f9a9818d03
1 changed files with 7 additions and 1 deletions
|
@ -130,7 +130,13 @@ class AppleDevice(object):
|
||||||
|
|
||||||
It's possible to pass a custom message by changing the `subject`.
|
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.session.post(
|
||||||
self.sound_url,
|
self.sound_url,
|
||||||
params=self.params,
|
params=self.params,
|
||||||
|
|
Loading…
Reference in a new issue