Open
Description
What happened?
When sending an iOS background notification with "ios_badgeType": "Increase"
, it behaves the same as "ios_badgeType": "SetTo"
I use the following API call:
curl --request POST \
--url https://onesignal.com/api/v1/notifications \
--header 'Authorization: Basic YOUR_REST_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"app_id": "app id",
"include_player_ids": [
"Subscribed device id"
],
"content_available": true,
"ios_badgeType": "Increase",
"ios_badgeCount": 5
}
'
When sending a normal foreground notification (with content), "ios_badgeType": "Increase"
is behaving as expected.
Steps to reproduce?
1. Send a background notification with the above API call and "ios_badgeCount": 5
2. Notice badge count on app icon to show "5"
3. Send background notification again, but with "ios_badgeCount": 1
4. Notice badge count on app icon to show "1"
What did you expect to happen?
Badge count on app icon should show "6"
OneSignal iOS SDK version
3.12.10, 5.2.8
iOS version
17
Specific iOS version
17.4
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
edit: updated affected SDK versions
Metadata
Metadata
Assignees
Labels
No labels