Repository navigation
Androidでnotifeeのフォアグラウンドサービスを使用してバックグラウンド位置情報更新を改善 - #5186
Merged
Merged
Conversation
Contributor
📝 WalkthroughWalkthroughNotifee を導入し、Android フォアグラウンドサービス用のネイティブモジュールとバックグラウンドイベントハンドラを追加。位置情報更新フローに Android 専用の start/stop 処理を組み込み、テスト用モックと依存を追加しました。 Changes
Sequence Diagram(s)sequenceDiagram
participant App as App 起動
participant Notifee as Notifee
participant Foreground as ForegroundService モジュール
participant Location as 位置情報フック
participant Android as Android ネイティブ
App->>Notifee: onBackgroundEvent(handler) 登録
App->>Location: useStartBackgroundLocationUpdates 起動
Location->>Foreground: createNotificationChannel()
Foreground->>Notifee: createChannel()
Notifee-->>Foreground: チャネル作成完了
Location->>Foreground: startForegroundService()
Foreground->>Notifee: displayNotification(ongoing)
Notifee->>Android: ネイティブ通知表示
Android-->>Foreground: 通知表示完了
Location->>Android: startLocationUpdates()
Android-->>Location: 位置情報更新開始
Android->>Notifee: ユーザ操作(PRESS/DISMISS)イベント発生
Notifee->>Foreground: onBackgroundEvent 発火
Foreground-->>Location: 必要に応じて再起動 / デフォルト処理
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 分 Possibly related PRs
Suggested labels
詩
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
This was referenced Jan 27, 2026
Merged
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.
https://claude.ai/code/session_01VMProqHPQHxetFrF8R1jnp
#5133
Summary by CodeRabbit
New Features
Dependencies
Tests
✏️ Tip: You can customize this high-level summary in your review settings.