Skip to content

Fixing "firebase + audio_service: application launched when it should not" by @yanivshaked hack#1011

Open
anocean2 wants to merge 6 commits into
ryanheise:minorfrom
anocean2:minor
Open

Fixing "firebase + audio_service: application launched when it should not" by @yanivshaked hack#1011
anocean2 wants to merge 6 commits into
ryanheise:minorfrom
anocean2:minor

Conversation

@anocean2

@anocean2 anocean2 commented Apr 9, 2023

Copy link
Copy Markdown

Fix the problem with "firebase + audio_service: application launched when it should not" by @yanivshaked hack pull request
#875

@anocean2 anocean2 changed the title Fix "firebase + audio_service: application launched when it should not" by @yanivshaked hack Fixing "firebase + audio_service: application launched when it should not" by @yanivshaked hack Apr 9, 2023
@mh152796

Copy link
Copy Markdown

Hello please help me to solve this. I have been trying for 7 days

dekart added a commit to dekart/audio_service that referenced this pull request Mar 16, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants