Skip to content

Commit

Permalink
Set max auto heartbeat interval to 15min
Browse files Browse the repository at this point in the history
The previous maximum of 30 minutes is too high for a worst case,
potentially resulting in massive notification delays on any network
but especially on certain less-reliable networks.

Change-Id: Iee64b4cfdbbefc918e70b1a9782bd1208ba9a689
  • Loading branch information
t-m-w authored and mar-v-in committed Aug 11, 2023
1 parent 9be1538 commit 1e96dd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ data class GcmPrefs(
const val PREF_NETWORK_OTHER = Gcm.NETWORK_OTHER

private const val MIN_INTERVAL = 5 * 60 * 1000 // 5 minutes
private const val MAX_INTERVAL = 30 * 60 * 1000 // 30 minutes
private const val MAX_INTERVAL = 15 * 60 * 1000 // 15 minutes

@JvmStatic
fun get(context: Context): GcmPrefs {
Expand Down

0 comments on commit 1e96dd1

Please sign in to comment.