[WinClock] Fix su notifiche iOS

This commit is contained in:
2024-09-20 13:49:09 +02:00
parent d3b2ca57de
commit 6e908c02a2

View File

@@ -230,7 +230,7 @@ public class UserWorkHoursService {
int secondNotification = firstNotification + 15;
int maxCheck = secondNotification + 15;
if (workedMinutes <= maxCheck && workedMinutes >= firstNotification) {
if ((workedMinutes <= maxCheck && workedMinutes >= firstNotification)) {
HashMap<String, String> appleConfigs = new HashMap<>();
appleConfigs.put("apns-expiration", String.valueOf(UtilityLocalDate.localDateTimeToTime(LocalDateTime.now().plusSeconds(ttlInSecs), null)));
@@ -242,7 +242,8 @@ public class UserWorkHoursService {
.setApns(new ApnsConfigDTO()
//.setHeaders(appleConfigs)
.setAps(new ApsDTO()
.setSound("default")))
.setSound("default")
.setContentAvailable(true)))
.setAndroid(new AndroidConfigDTO()
//.setTtl(ttlInSecs * 1000)
.setNotification(new AndroidNotificationDTO()