react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

how add action button ios to payload onesignal json apns file in simultor?

Open AFDHAL2009 opened this issue 1 year ago • 1 comments

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

AFDHAL2009 avatar Feb 01 '24 09:02 AFDHAL2009

the onesigal console for notification show the full object received but actionButtons:[] still empty

AFDHAL2009 avatar Feb 01 '24 09:02 AFDHAL2009