Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service doesn't work with new architecture #224

Open
contactsimonwilson opened this issue May 31, 2024 · 4 comments
Open

Service doesn't work with new architecture #224

contactsimonwilson opened this issue May 31, 2024 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@contactsimonwilson
Copy link

It appears that the background service doesn't work correctly when upgrading to the new RN architecture on Android. I'm yet to test on iOS but on Android the notification shows up correctly but the task is never registered.

WARN No task registered for key VescStatsService1

If anyone has any ideas about what the issue could be, I can look into a fix.

RNTP has a similar issue but possibly not related.
doublesymmetry/react-native-track-player#2293

@contactsimonwilson
Copy link
Author

@Rapsssito was this intentionally closed? I can't see any changes that would make this work make this work. There's a discussion ongoing in the react-native repo
facebook/react-native#44255

@Rapsssito
Copy link
Owner

@contactsimonwilson, woops. My fault (I was closing all issues related to Android 14 incompatibility and I probably copied the wrong #), I will reopen it again.

@marciogabrielsf
Copy link

Same problem with me. I was trying to update my app to the new architecture + bridgeless and had the same issue on Android. The notification shows up but the task doesn't execute.

RN 0.75.4 + New Architecture + Bridgeless mode active.
Background actions v4.0.1

@contactsimonwilson
Copy link
Author

The fix for compatibility should be available in the latest 0.76.1 React Native release. I'll test it ASAP and will let you know whether this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants