Hey Yakup & other devs :),
I'm facing some issues regarding updating Live Activities using the OneSignal Update API. It simply wont update my Live Activity even tho i use the same activity_id and the same event_updates. Starting a Live Activity using the push-to-start API works perfectly fine and the activity shows up on my phone but updating wont work. The updates gets send but OneSignal says it had "No Receipents"
Here are the cURLs:
Starting a Live Activity:
curl --request POST \
--url https://api.onesignal.com/apps/[APP_ID]/activities/activity/DefaultLiveActivityAttributes \
--header 'Authorization: [API_KEY]' \
--header 'Content-Type: application/json' \
--data '{
"event": "start",
"activity_id": "activity",
"event_attributes": {
"promptText": "What can i do for you ?",
"promptIconName": "circle.dashed"
},
"event_updates": {
"leftButtonText": "Select Mode",
"rightButtonText": "Send Vibe"
},
"name": "activity",
"contents": {
"en": "activity"
},
"headings": {
"en": "activity"
},
"include_aliases": {
"onesignal_id": [
"8c409084-0156-4fa1-ba06-cd759aa6b920"
]
},
"priority": "10"
}'
And the Update cURL:
curl --request POST \
--url https://api.onesignal.com/apps/[APP_ID]/live_activities/arkh-activity/notifications \
--header 'Authorization: [API_KEY]' \
--header 'Content-Type: application/json' \
--data '{
"event": "update",
"event_updates": {
"leftButtonText": "Alpay",
"rightButtonText": "Marie"
},
"name": "activity",
"contents": {
"en": "en"
},
"priority": "5"
}'
as i said staring works fine, updating give me "No Receipents" in OneSignal and it wont update my Live Activity.