[WinClock] Fix su notifiche iOS
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user