Raises the check interval to a more reasonable level.
This commit is contained in:
parent
5f6fab2b70
commit
2f27f8efdd
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ public class BaseActivity extends AppCompatActivity {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Start up the MessagingService on a repeating interval for "pull" notifications.
|
// Start up the MessagingService on a repeating interval for "pull" notifications.
|
||||||
long checkInterval = 60 * 1000; // * 10;
|
long checkInterval = 60 * 1000 * 5;
|
||||||
AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
|
AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
|
||||||
Intent intent = new Intent(this, MessagingService.class);
|
Intent intent = new Intent(this, MessagingService.class);
|
||||||
final int SERVICE_REQUEST_CODE = 8574603; // This number is arbitrary.
|
final int SERVICE_REQUEST_CODE = 8574603; // This number is arbitrary.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue