Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payload does not contain mutable_content. #190

Open
sunnyjain1 opened this issue Mar 23, 2017 · 1 comment
Open

Payload does not contain mutable_content. #190

sunnyjain1 opened this issue Mar 23, 2017 · 1 comment

Comments

@sunnyjain1
Copy link

Hi,

I am using this library to send notification to ios device.

For ios 10 compatible notification I tried below code written in README.

import time
from apns import APNs, Frame, Payload
apns = APNs(use_sandbox=True, cert_file='cert.pem', key_file='key.pem')
token_hex = '<some-token>'
payload = Payload(alert="Hello World!", sound="default", badge=1, mutable_content=True)  <-- Got Error on this line
apns.gateway_server.send_notification(token_hex, payload)

The Error I got was :

__init__() got an unexpected keyword argument 'mutable_content'

I installed the apns using :

easy install apns

Thanks

@ZwodahS
Copy link

ZwodahS commented Apr 2, 2017

Hmm the line for mutable_content was added on 2016, and the last apns uploaded to pypi is 2015.

Any chance that we can get a new version on pypi ? Or should we use directly from github ? If so, can we have a tag on the last known stable instead of relying on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants