Increase local notification delay.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 0331244b5c
commit 552eecfd03

@ -436,7 +436,7 @@ NSString *const PushManagerUserInfoKeysCallBackSignalRecipientId = @"PushManager
if (checkForCancel && threadId != nil) { if (checkForCancel && threadId != nil) {
// The longer we wait, the more obsolete notifications we can suppress - // The longer we wait, the more obsolete notifications we can suppress -
// but the more lag we introduce to notification delivery. // but the more lag we introduce to notification delivery.
const CGFloat kDelaySeconds = 0.3f; const CGFloat kDelaySeconds = 0.5f;
notification.fireDate = [NSDate dateWithTimeIntervalSinceNow:kDelaySeconds]; notification.fireDate = [NSDate dateWithTimeIntervalSinceNow:kDelaySeconds];
notification.timeZone = [NSTimeZone localTimeZone]; notification.timeZone = [NSTimeZone localTimeZone];
} }

Loading…
Cancel
Save