Ionic custom push notificationsとphonegap-plugin-pushを使用して通知アクションを実装しようとしています。イオンプッシュ通知でアクションを表示
残念ながら、メッセージとタイトルが完全に機能しても、まだアクションボタンを表示する運がありませんでした。
これは私のcURLのリクエストです:
curl -X POST -H "Authorization: Bearer XXXXXXXXXXXXXXX" -H "Content-Type: application/json" -d '{
"tokens": ["XXXXXXXXXXXXXXX"],
"profile": "push01",
"notification": {
"message": "test",
"android": {
"title": "test android",
"data": {
"actions": [
{ "icon": "emailGuests", "title": "EMAIL GUESTS", "callback": "app.emailGuests", "foreground": true},
{ "icon": "snooze", "title": "SNOOZE", "callback": "app.snooze", "foreground": false }
]
}
}
}
}' "https://api.ionic.io/push/notifications"
私が間違っているかもしれないもの上の任意のアイデア?
ありがとうございます!
あなたはイオン2でこれを解決できましたか? –