Newer Version Available
Considerations and Limitations
Keep the following in mind when working with Lightning Message Service in
Visualforce.
- Considerations
- Lightning Message Service does not work for Visualforce's sforce.one library when pages are loaded in the Chatter Publisher that uses <chatter:feed showPublisher="true"/>. Use the native Lightning Publisher instead.
- Lightning Message Service does not work in Visualforce pages that are included in Lightning Experience via iframes, including <wave:dashboard>, <apex:iframe>, and the standard HTML <iframe> tag. Instead, add Visualforce pages through the Lightning App Builder or as a utility bar item.
- Visualforce only supports LightningMessageChannels where isExposed is true. See LightningMessageChannel in the Metadata API Developer Guide for more information.
- Lightning Message Service does not work outside of Lightning Experience, such as Salesforce Classic or when previewing Visualforce from Setup.
- Limitations
- The Lightning Message Service supports only the following experiences:
- Lightning Experience standard navigation
- Lightning Experience console navigation
- Salesforce mobile app for Aura and Lightning Web Components, but not Visualforce pages