react-native-onesignal
react-native-onesignal copied to clipboard
how add action button ios to payload onesignal json apns file in simultor?
How can we help?
Hello ,I try to add action button in notification onesignal react-native ios.So i used apns file for test in simulator, the notification coming with dragging file but action button does not appear even i made a long press can anyone give me the correct aps format json and thinks for help this my payload apns file for test:
{
"Simulator Target Bundle": "******",
"aps": {
"alert": {
"title": "Push Notification",
"subtitle": "Test Push Notifications",
"body": "Testing Push Notifications on iOS Simulator",
"actionButtons":[
{
"id":"test",
"text":"test"
}
]
}
},
"custom": {
"i": "notificationId as UUID",
"a": {"deeplinkKey": "{\"deeplinkDetailKey\":\"deeplinkDetailValue\"}", "launchURL": "example://collection/myCollectionId/type/1"}
}
}
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
the onesigal console for notification show the full object received but actionButtons:[] still empty