Newer Version Available
Considerations and Limitations
Keep the following in mind when working with Lightning message service in
Visualforce.
- Considerations
- Lightning message service doesn’t 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 doesn’t 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 supports only LightningMessageChannels where isExposed is true. See LightningMessageChannel in the Metadata API Developer Guide for more information.
- Lightning message service doesn’t work in 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 for Visualforce pages
- Lightning components used in Experience Builder sites. Support for Experience Builder sites is beta.