Commit 2d78a39
fix: Register HeadlessJsTaskSupportModule in CoreReactPackage (#56267)
Summary:
The `HeadlessJsTaskSupportModule` was not included in any ReactPackage, causing `AppRegistry.notifyTaskFinished()` to fail silently. This meant headless JS tasks would not properly signal completion to the calling service, leaving it to linger unnecessarily.
This fix adds `HeadlessJsTaskSupportModule` to `CoreReactPackage` so that `notifyTaskFinished` and `notifyTaskRetry` methods are properly available.
## Changelog
[ANDROID] [FIXED] - Register HeadlessJsTaskSupportModule in CoreReactPackage
Pull Request resolved: #56267
Test Plan:
- [x] Android Kotlin compilation passes
- [ ] Verify headless JS tasks can properly call `notifyTaskFinished()`
Fixes #56263
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Reviewed By: fabriziocucci
Differential Revision: D98884467
Pulled By: cortinico
fbshipit-source-id: 0e1e88e722d0d353d0469a46fbddda9f11e3c81a1 parent 664acaf commit 2d78a39
File tree
1 file changed
+4
-0
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
0 commit comments