Repository navigation
Android 16でのバックグラウンド位置更新停止問題を修正 - #5198
Merged
Merged
Conversation
- expo-locationのforegroundServiceオプションをAndroidでも有効化 - app.config.tsにexpo-location pluginを追加(isAndroidForegroundServiceEnabled: true) - AndroidManifest.xmlにLocationTaskServiceを追加 - NotifeeのフォアグラウンドサービスではなくJobSchedulerクォータの影響を受けないexpo-locationのフォアグラウンドサービスを使用 https://claude.ai/code/session_01CPtNGqpk2Jd7LVRwJt4FoN
- 位置情報はexpo-locationのLocationTaskServiceで処理するため不要 - mediaPlaybackのみ残してバックグラウンドTTS用途に使用可能に - expo-locationのインポートと位置情報権限チェックを削除 https://claude.ai/code/session_01CPtNGqpk2Jd7LVRwJt4FoN
Contributor
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughAndroidManifestにLocationTaskServiceを追加し、既存ForegroundServiceのforegroundServiceTypeをlocation|mediaPlaybackからmediaPlaybackに狭める。expo-locationを使う形でforegroundServiceの起動ロジックがプラットフォーム間で統一され、Androidのフォアグラウンドサービス起動は背景TTSフラグと位置権限で条件付けされる。 Changes
Sequence Diagram(s)sequenceDiagram
participant AppHook as App Hook
participant AsyncStorage as AsyncStorage
participant Permissions as Permissions
participant ExpoLocation as expo-location
participant ForegroundSrv as Android ForegroundService
AppHook->>AsyncStorage: read BG_TTS_ENABLED
AppHook->>Permissions: check location permission
alt BG_TTS_ENABLED and permission granted
AppHook->>ExpoLocation: Location.startLocationUpdatesAsync(foregroundService config)
ExpoLocation->>ForegroundSrv: start LocationTaskService (foreground type: location)
AppHook->>ForegroundSrv: optionally start Media ForegroundService (mediaPlayback) if TTS needed
else missing flag or permission
AppHook-->>AppHook: do not start foreground services
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
- expo-location: 位置情報用(locationタイプ) - Notifee: バックグラウンドTTS用(mediaPlaybackタイプ) https://claude.ai/code/session_01CPtNGqpk2Jd7LVRwJt4FoN
- バックグラウンドTTSが有効かつ位置情報が常に許可されている場合のみ起動 - TTS専用のフォアグラウンドサービスなので、TTS無効時は起動しない https://claude.ai/code/session_01CPtNGqpk2Jd7LVRwJt4FoN
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.
#5133
https://claude.ai/code/session_01CPtNGqpk2Jd7LVRwJt4FoN
Summary by CodeRabbit
リリースノート
✏️ Tip: You can customize this high-level summary in your review settings.