调用方法后如何在标准输出中写入(自动执行通知系统(Iphone))
像这样的东西: call(apns.gateway_server.send_notification(key, Payload), sys.stdout.write("my phars"))
我不知道该怎么做
I'm trying to do a system of notifications automatic (Iphone) using https://github.com/simonwhitaker/PyAPNs. When you want to send a notification you call "apns.gateway_server.send_notification(key, payload)" and you have to enter the PEM pass phrase. Is there a way to enter this phrase through code?
Something like: call(apns.gateway_server.send_notification(key, payload), sys.stdout.write("my phars"))
I don't know how to do it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你运行这个的时候有问题吗?
Is there a problem when you run this?