-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Description
使用python调用jpush分别发送消息给android和ios,代码如下:
[root@aps push]# cat example_platformmsg.py
import jpush as jpush
from conf import app_key, master_secret
_jpush = jpush.JPush(app_key, master_secret)
push = _jpush.create_push()
push.audience = {'registration_id': ["030fdxxxx8a","071b8xxxx15"]}
push.notification = jpush.notification(alert="Hello, JPush!(send by python)")
push.platform = jpush.all_
push.send()
[root@aps push]# python example_platformmsg.py
{"sendno":"0","msg_id":"363809640"}
android能收到,但是ios无法收到!
而使用jpush web测试推送,android和ios都可以收到消息。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels