react-native-background-actions icon indicating copy to clipboard operation
react-native-background-actions copied to clipboard

Service doesn't work with new architecture

Open techfoundrynz opened this issue 1 year ago • 4 comments
trafficstars

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. https://github.com/doublesymmetry/react-native-track-player/issues/2293

techfoundrynz avatar May 31 '24 11:05 techfoundrynz

@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 https://github.com/facebook/react-native/issues/44255

techfoundrynz avatar Jun 17 '24 09:06 techfoundrynz

@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.

Rapsssito avatar Jun 17 '24 09:06 Rapsssito

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

marciogabrielsf avatar Oct 25 '24 15:10 marciogabrielsf

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.

techfoundrynz avatar Nov 01 '24 19:11 techfoundrynz