在尝试按照 onesignal 文档使用 postman 向 onesignal 发送 POST 请求以发送通知时,在尝试发送时出现以下错误:
"app_id not found. You may be missing a Content-Type: application/json header."
此外,我相信我的 JSON 在语法上是正确的:
{
"included_segments": [
"Subscribed Users"
],
"App_id": "{Removed for obvious reasons}",
"contents": {
"en": "This is a message, sent from postman using the onesignal API"
},
"headings": {
"en": "This is a heading"
},
"subtitle": {
"en": "This is a subtitle, it should only appear on iOS devices"
},
"ios_badgeType": "SetTo",
"ios_badgeCount": 1,
"priority": 10
} …Run Code Online (Sandbox Code Playgroud)