所以我设法用我的 API 令牌连接到 websocket,我确实收到了通知。对于来电,我会推送所有信息,如下所示:
{"type":"push","targets":["stream"],"push":{"type":"mirror","source_device_iden":"XXXXXXX","source_user_iden":"ujC7S24sQxw","client_version ":206,"dismissible":true,"title":"5555551212","body":"来电","application_name":"Pushbullet","package_name":"com.pushbullet.android","notification_id" :"6","icon" "这里的价值很大"}}
所以我可以看到电话来自 555-1212(为了隐私,我更改了号码),这一切都说得通。但是,对于短信,我得到的只是短信更改的通知。没有正文字段,所以我看不到它来自哪里以及消息是什么。它所说的只是类型的 sms_changed:
{"type":"push","targets":["stream"],"push":{"type":"sms_changed","source_device_iden":"XXXXXXXXX"}}
我究竟做错了什么?我想获取 SMS 消息和发件人信息,以便我可以发布它。任何和所有的帮助将不胜感激。