Commit 20b261e
Fix: prevent unintended app launch with Firebase + audio_service
Apply changes from PR ryanheise#1011 by @anocean2 (Andrey Kupriev).
This fixes the issue where Firebase messages cause the app to launch
when it shouldn't by adding a startup guard to AudioServiceActivity.
Changes:
- Add armStartup flag to AudioServicePlugin
- getFlutterEngine() returns null when not armed
- AudioServiceActivity calls setArmStartup(true) before getting engine
Original PR: ryanheise#1011
Co-Authored-By: Andrey Kupriev <kuprievao@intech.rshb.ru>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2895770 commit 20b261e
2 files changed
Lines changed: 9 additions & 0 deletions
File tree
- audio_service/android/src/main/java/com/ryanheise/audioservice
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| 74 | + | |
70 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
0 commit comments