Skip to content

Commit ed20689

Browse files
authored
feat: add v5.13.0 package updates (#129)
Channels: Current ### πŸš€ New Features - feat: [SDK-5021] add `ios_sound` to UpdateLiveActivityRequest and deprecate `sound` (OneSignal/API-Client-Libraries#455)
2 parents 296d567 + f843e6d commit ed20689

11 files changed

Lines changed: 176 additions & 80 deletions

File tree

β€ŽREADME.mdβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> **Building with an AI agent or LLM?** See [AGENTS.md](https://github.com/OneSignal/onesignal-java-api/blob/main/AGENTS.md) for an agent-oriented integration guide β€” authentication, calling conventions, idempotent retries, and the full API reference.
44
55
OneSignal
6-
- API version: 5.12.0
6+
- API version: 5.13.0
77

88
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
99

@@ -21,14 +21,14 @@ Building the API client library requires:
2121
<dependency>
2222
<groupId>com.onesignal</groupId>
2323
<artifactId>onesignal-java-client</artifactId>
24-
<version>5.12.0</version>
24+
<version>5.13.0</version>
2525
</dependency>
2626
```
2727

2828
### Gradle
2929

3030
```groovy
31-
implementation "com.onesignal:onesignal-java-client:5.12.0"
31+
implementation "com.onesignal:onesignal-java-client:5.13.0"
3232
```
3333

3434
## Configuration

β€Žapi/openapi.yamlβ€Ž

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
customer engagement strategies. Learn more at onesignal.com
99
termsOfService: https://onesignal.com/tos
1010
title: OneSignal
11-
version: 5.12.0
11+
version: 5.13.0
1212
servers:
1313
- url: https://api.onesignal.com
1414
paths:
@@ -4529,6 +4529,7 @@ components:
45294529
tr: tr
45304530
sound: sound
45314531
name: name
4532+
ios_sound: ios_sound
45324533
headings:
45334534
de: de
45344535
hi: hi
@@ -4576,6 +4577,7 @@ components:
45764577
dismissal_date: 6
45774578
event: update
45784579
priority: 1
4580+
ios_relevance_score: 5.962133916683182
45794581
properties:
45804582
name:
45814583
description: An internal name to assist with your campaign organization.
@@ -4595,9 +4597,15 @@ components:
45954597
headings:
45964598
$ref: '#/components/schemas/LanguageStringMap'
45974599
sound:
4598-
description: Sound file that is included in your app to play instead of
4599-
the default device notification sound. Omit to disable vibration and sound
4600-
for the notification.
4600+
deprecated: true
4601+
description: Deprecated. The API ignores this field. Use `ios_sound`.
4602+
type: string
4603+
ios_sound:
4604+
description: "Sound file that is included in your app to play instead of\
4605+
\ the default device notification sound. Omit to disable vibration and\
4606+
\ sound for the notification. Requires `headings` on the same request:\
4607+
\ ActivityKit ignores an update whose alert has no title, which silently\
4608+
\ drops the sound. Supersedes the deprecated `sound` field.\n"
46014609
type: string
46024610
stale_date:
46034611
description: "Accepts Unix timestamp in seconds. When time reaches the configured\
@@ -4609,14 +4617,22 @@ components:
46094617
"end"
46104618
type: integer
46114619
priority:
4612-
description: "Delivery priority through the the push provider (APNs). Pass\
4613-
\ 10 for higher priority notifications, or 5 for lower priority notifications.\
4620+
description: "Delivery priority through the push provider (APNs). Pass 10\
4621+
\ for higher priority notifications, or 5 for lower priority notifications.\
46144622
\ Lower priority notifications are sent based on the power considerations\
46154623
\ of the end user's device. If not set, defaults to 10. Some providers\
46164624
\ (APNs) allow for a limited budget of high priority notifications per\
46174625
\ hour, and if that budget is exceeded, the provider may throttle notification\
46184626
\ delivery."
46194627
type: integer
4628+
ios_relevance_score:
4629+
description: "A value between 0 and 1. When more than one Live Activity\
4630+
\ is active for your app, the one with the highest relevance score shows\
4631+
\ in the Dynamic Island. If the scores are equal, the system shows the\
4632+
\ Live Activity that started first. The score also sets the order of Live\
4633+
\ Activities on the Lock Screen. Only available on iOS 16.2 and later."
4634+
nullable: true
4635+
type: number
46204636
required:
46214637
- event
46224638
- event_updates
@@ -5140,8 +5156,11 @@ components:
51405156
\ of the end user's device. If not set, defaults to 10."
51415157
type: integer
51425158
ios_relevance_score:
5143-
description: iOS 15+. A score to indicate how a notification should be displayed
5144-
when grouped. Use a float between 0-1.
5159+
description: "A value between 0 and 1. When more than one Live Activity\
5160+
\ is active for your app, the one with the highest relevance score shows\
5161+
\ in the Dynamic Island. If the scores are equal, the system shows the\
5162+
\ Live Activity that started first. The score also sets the order of Live\
5163+
\ Activities on the Lock Screen. Only available on iOS 16.2 and later."
51455164
nullable: true
51465165
type: number
51475166
idempotency_key:

β€Žbuild.gradleβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apply plugin: 'com.diffplug.spotless'
55
apply plugin: 'com.vanniktech.maven.publish'
66

77
group = 'com.onesignal'
8-
version = '5.12.0'
8+
version = '5.13.0'
99

1010
buildscript {
1111
repositories {

β€Žbuild.sbtβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.onesignal",
44
name := "onesignal-java-client",
5-
version := "5.12.0",
5+
version := "5.13.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

β€Ždocs/StartLiveActivityRequest.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
|**headings** | [**LanguageStringMap**](LanguageStringMap.md) | | |
1717
|**staleDate** | **Integer** | Accepts Unix timestamp in seconds. When time reaches the configured stale date, the system considers the Live Activity out of date, and the ActivityState of the Live Activity changes to ActivityState.stale. | [optional] |
1818
|**priority** | **Integer** | Delivery priority through the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user&#39;s device. If not set, defaults to 10. | [optional] |
19-
|**iosRelevanceScore** | **BigDecimal** | iOS 15+. A score to indicate how a notification should be displayed when grouped. Use a float between 0-1. | [optional] |
19+
|**iosRelevanceScore** | **BigDecimal** | A value between 0 and 1. When more than one Live Activity is active for your app, the one with the highest relevance score shows in the Dynamic Island. If the scores are equal, the system shows the Live Activity that started first. The score also sets the order of Live Activities on the Lock Screen. Only available on iOS 16.2 and later. | [optional] |
2020
|**idempotencyKey** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it&#39;s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
2121
|**includeAliases** | **Map&lt;String, List&lt;String&gt;&gt;** | Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \&quot;external_id\&quot;: [\&quot;exId1\&quot;, \&quot;extId2\&quot;], \&quot;internal_label\&quot;: [\&quot;id1\&quot;, \&quot;id2\&quot;] } Keys must match API spellings exactly (for example the label for External ID is the string &#x60;external_id&#x60;; arbitrary keys such as camelCase variants are not aliases and may yield no recipients). Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms. | [optional] |
2222
|**includeSubscriptionIds** | **List&lt;String&gt;** | Specific subscription ids to target. Not compatible with other targeting parameters. | [optional] |

β€Ždocs/UpdateLiveActivityRequest.mdβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
|**eventUpdates** | **Object** | This must match the ContentState interface you have defined within your Live Activity in your app. | |
1313
|**contents** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional] |
1414
|**headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional] |
15-
|**sound** | **String** | Sound file that is included in your app to play instead of the default device notification sound. Omit to disable vibration and sound for the notification. | [optional] |
15+
|**sound** | **String** | Deprecated. The API ignores this field. Use &#x60;ios_sound&#x60;. | [optional] |
16+
|**iosSound** | **String** | Sound file that is included in your app to play instead of the default device notification sound. Omit to disable vibration and sound for the notification. Requires &#x60;headings&#x60; on the same request: ActivityKit ignores an update whose alert has no title, which silently drops the sound. Supersedes the deprecated &#x60;sound&#x60; field. | [optional] |
1617
|**staleDate** | **Integer** | Accepts Unix timestamp in seconds. When time reaches the configured stale date, the system considers the Live Activity out of date, and the ActivityState of the Live Activity changes to ActivityState.stale. | [optional] |
1718
|**dismissalDate** | **Integer** | Accepts Unix timestamp in seconds; only allowed if event is \&quot;end\&quot; | [optional] |
18-
|**priority** | **Integer** | Delivery priority through the the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user&#39;s device. If not set, defaults to 10. Some providers (APNs) allow for a limited budget of high priority notifications per hour, and if that budget is exceeded, the provider may throttle notification delivery. | [optional] |
19+
|**priority** | **Integer** | Delivery priority through the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user&#39;s device. If not set, defaults to 10. Some providers (APNs) allow for a limited budget of high priority notifications per hour, and if that budget is exceeded, the provider may throttle notification delivery. | [optional] |
20+
|**iosRelevanceScore** | **BigDecimal** | A value between 0 and 1. When more than one Live Activity is active for your app, the one with the highest relevance score shows in the Dynamic Island. If the scores are equal, the system shows the Live Activity that started first. The score also sets the order of Live Activities on the Lock Screen. Only available on iOS 16.2 and later. | [optional] |
1921

2022

2123

β€Žpom.xmlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>onesignal-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>onesignal-java-client</name>
8-
<version>5.12.0</version>
8+
<version>5.13.0</version>
99
<url>https://github.com/OneSignal/onesignal-java-api</url>
1010
<description>OneSignal Java API Client</description>
1111
<scm>

β€Žsrc/main/java/com/onesignal/client/ApiClient.javaβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private void init() {
132132
json = new JSON();
133133

134134
// Set default User-Agent.
135-
setUserAgent("OpenAPI-Generator/5.12.0/java");
135+
setUserAgent("OpenAPI-Generator/5.13.0/java");
136136

137137
authentications = new HashMap<String, Authentication>();
138138
}

0 commit comments

Comments
Β (0)