deferredUpdatesDistanceを0にして停車中もバックグラウンド更新が届くようにする#5420
Merged
TinyKitten merged 3 commits intodevfrom Feb 22, 2026
Merged
Conversation
expo-task-managerはバックグラウンドでJobScheduler経由でJS側にデータを配信するため、 deferredUpdatesを0にすると毎回の位置更新ごとにジョブがスケジュールされ、 Android 16で新たにフォアグラウンドサービス動作中にも適用されるようになった クォータを超過してバックグラウンド更新が停止していた。 https://claude.ai/code/session_017LJ3KNDwwVChQJbm9qgvHB
shouldReportDeferredLocationsはinterval AND distanceの両方を要求するため、 distance > 0だと停車中に条件を満たせずJS側に位置情報が配信されない。 intervalのみでJobSchedulerジョブの発火頻度を制御する。 https://claude.ai/code/session_017LJ3KNDwwVChQJbm9qgvHB
Contributor
|
No actionable comments were generated in the recent review. 🎉 📝 Walkthroughウォークスルーロケーション定数が修正されました。LOCATION_TIME_INTERVAL が 1000 から 3000 ミリ秒に変更され、deferredUpdatesInterval がこの定数を参照するように更新されました。Android のバックグラウンドロケーション動作に関する説明的なコメントが追加されました。 変更内容
推定レビュー時間🎯 2 (Simple) | ⏱️ ~8 分 関連する可能性のあるPR
推奨ラベル
ポエム
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit
リリースノート