diff --git a/pom.xml b/pom.xml
index ee728c5..243cfd3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
org.junit
junit-bom
- 5.8.1
+ 5.11.0-M1
pom
import
@@ -38,19 +38,19 @@
com.fasterxml.jackson.core
jackson-core
- 2.17.0
+ 2.17.1
com.fasterxml.jackson.core
jackson-databind
- 2.17.0
+ 2.17.1
commons-codec
commons-codec
- 1.11
+ 1.17.0
@@ -113,7 +113,7 @@
org.apache.maven.plugins
maven-gpg-plugin
- 1.5
+ 3.2.4
--pinentry-mode
@@ -151,16 +151,16 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.8.1
+ 3.13.0
maven-surefire-plugin
- 2.22.2
+ 3.2.5
org.apache.maven.plugins
maven-source-plugin
- 2.1.2
+ 3.3.1
attach-sources
@@ -173,7 +173,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 2.7
+ 3.6.3
attach-javadocs
@@ -187,7 +187,7 @@
org.apache.maven.plugins
maven-assembly-plugin
- 3.2.0
+ 3.7.1
jar-with-dependencies
diff --git a/src/main/java/com/clevertap/apns/Notification.java b/src/main/java/com/clevertap/apns/Notification.java
index 1c71be6..7d0fe65 100644
--- a/src/main/java/com/clevertap/apns/Notification.java
+++ b/src/main/java/com/clevertap/apns/Notification.java
@@ -206,11 +206,56 @@ public Builder alertBody(String body) {
return this;
}
+ public Builder alertLocKey(String locKey) {
+ alert.put("loc-key", locKey);
+ return this;
+ }
+
+ public Builder alertLocArgs(String[] locArgs) {
+ alert.put("loc-args", locArgs);
+ return this;
+ }
+
public Builder alertTitle(String title) {
alert.put("title", title);
return this;
}
+ public Builder alertTitleLocKey(String titleLocKey) {
+ alert.put("title-loc-key", titleLocKey);
+ return this;
+ }
+
+ public Builder alertTitleLocArgs(String[] titleLocArgs) {
+ alert.put("title-loc-args", titleLocArgs);
+ return this;
+ }
+
+ public Builder alertSubtitle(String subtitle) {
+ alert.put("subtitle", subtitle);
+ return this;
+ }
+
+ public Builder alertSubtitleLocKey(String subtitleLocKey) {
+ alert.put("subtitle-loc-key", subtitleLocKey);
+ return this;
+ }
+
+ public Builder alertSubtitleLocArgs(String[] subtitleLocArgs) {
+ alert.put("subtitle-loc-args", subtitleLocArgs);
+ return this;
+ }
+
+ public Builder actionLocKey(String actionLocKey) {
+ alert.put("action-loc-key", actionLocKey);
+ return this;
+ }
+
+ public Builder launchImage(String launchImage) {
+ alert.put("launch-image", launchImage);
+ return this;
+ }
+
public Builder urlArgs(String[] args) {
aps.put("url-args", args);
return this;
@@ -303,6 +348,10 @@ public Builder interruptionLevel(InterruptionLevel interruptionLevel) {
return this;
}
+ public Builder threadId(String threadId) {
+ aps.put("thread-id", threadId);
+ return this;
+ }
public int size() {
try {