Skip to content

ios无法收到推送的消息 #22

@Jimmy-Xu

Description

@Jimmy-Xu

使用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都可以收到消息。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions