From b52571523db0433cd5b0c2bed4430ecef063f8b7 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Mon, 12 Aug 2024 13:59:40 +0200 Subject: [PATCH] SNAPSHOT version awaiting new Tiqr requirements --- pom.xml | 4 ++-- src/main/java/tiqr/org/push/APNS.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 814acb3..d3234cd 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.openconext tiqr-java-connector - 1.1.3 + 1.1.4-SNAPSHOT tiqr-java-connector @@ -72,7 +72,7 @@ com.eatthepath pushy - 0.15.1 + 0.15.4 com.google.firebase diff --git a/src/main/java/tiqr/org/push/APNS.java b/src/main/java/tiqr/org/push/APNS.java index 44b8764..58351df 100644 --- a/src/main/java/tiqr/org/push/APNS.java +++ b/src/main/java/tiqr/org/push/APNS.java @@ -54,7 +54,9 @@ public String push(Registration registration, String authorizationUrl) throws Pu ApnsPayloadBuilder payloadBuilder = new SimpleApnsPayloadBuilder(); payloadBuilder.setAlertBody("Please log in"); + payloadBuilder.setMutableContent(true); payloadBuilder.addCustomProperty("challenge", authorizationUrl); + payloadBuilder.addCustomProperty("authenticationTimeout", 30L); String payload = payloadBuilder.build(); SimpleApnsPushNotification pushNotification = new SimpleApnsPushNotification(notificationAddress, this.topic, payload);