Skip to content

Remove unimplemented sendIntent from RCTLinkingManager - #58154

Open
christophpurrer wants to merge 1 commit into
react:mainfrom
christophpurrer:export-D117534390
Open

Remove unimplemented sendIntent from RCTLinkingManager#58154
christophpurrer wants to merge 1 commit into
react:mainfrom
christophpurrer:export-D117534390

Conversation

@christophpurrer

Copy link
Copy Markdown
Contributor

Summary:
sendIntent is an Android-only Linking API. On iOS the JS layer never reaches
the native module at all — Linking.sendIntent() returns
Promise.reject(new Error('Unsupported')) for any non-Android platform, so the
exported ObjC method was unreachable. Its body was only
RCTLogError(@"Not implemented: ...").

It is also absent from NativeLinkingManagerSpec, the codegen'd protocol
RCTLinkingManager conforms to, so a TurboModule call could not dispatch to it
either: only spec methods appear on NativeLinkingManagerSpecJSI. The
sendIntent declaration lives on the separate Android spec instead.

Removing the dead stub. No behaviour change — the JS-visible rejection on iOS is
produced in Linking.js and is untouched.

Changelog: [Internal]

Differential Revision: D117534390

Summary:
`sendIntent` is an Android-only Linking API. On iOS the JS layer never reaches
the native module at all — `Linking.sendIntent()` returns
`Promise.reject(new Error('Unsupported'))` for any non-Android platform, so the
exported ObjC method was unreachable. Its body was only
`RCTLogError(@"Not implemented: ...")`.

It is also absent from `NativeLinkingManagerSpec`, the codegen'd protocol
`RCTLinkingManager` conforms to, so a TurboModule call could not dispatch to it
either: only spec methods appear on `NativeLinkingManagerSpecJSI`. The
`sendIntent` declaration lives on the separate Android spec instead.

Removing the dead stub. No behaviour change — the JS-visible rejection on iOS is
produced in `Linking.js` and is untouched.

Changelog: [Internal]

Differential Revision: D117534390
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 26, 2026
@meta-codesync

meta-codesync Bot commented Aug 26, 2026

Copy link
Copy Markdown

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D117534390.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant