Skip to content

fix android observer initialization#24

Merged
MiloszFilimowski merged 2 commits intomasterfrom
fix-android-initialization
Mar 20, 2026
Merged

fix android observer initialization#24
MiloszFilimowski merged 2 commits intomasterfrom
fix-android-initialization

Conversation

@MiloszFilimowski
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 20, 2026 14:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts Android module lifecycle behavior so audio output observation and event emission happen only after the React Native instance is ready, avoiding early initialization issues.

Changes:

  • Move audioOutputManager.startObserving() from the module constructor into initialize().
  • Guard sendEvent(...) so it no-ops when there is no active React instance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MiloszFilimowski MiloszFilimowski merged commit 6fc245f into master Mar 20, 2026
7 checks passed
@MiloszFilimowski MiloszFilimowski deleted the fix-android-initialization branch March 20, 2026 14:53
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.

2 participants