Send re-REGISTER PNs earlier
The algorithm used to determine which mobile devices to wakeup via push notification has been revised: It now takes a threshold parameter indicating at which percentage of their expiration time those devices should start receiving wakeup PNs.
This threshold is configurable with the new register-wakeup-threshold
config item.
The logs of the cron-like service doing this periodic wakeup have been improved, and should show less mismatches (contacts skipped because they cannot be sent background PNs).
(cherry picked from commit 98f414ae)
Edited by Thibault Lemaire