我已将间隔和最快间隔设置为,
locationRequest.setInterval(30 * 60 * 1000); //30 minutes
locationRequest.setFastestInterval(30 *60 * 1000); //30 minutes
但有时我会在 30 分钟前收到位置更新,而且间隔不均匀。例如,有时在 3 分钟、4 分钟、10 分钟后接收到位置更新。
我的待定意图设置为,
mPendingIntent = PendingIntent.getService(context, 0, mIntentService, PendingIntent.FLAG_UPDATE_CURRENT);
这是预期的行为还是我需要以其他方式处理它?