1

I want to do some background processing so I wrote a background utility bar item, and tried listening to LMS messages, but it didn't work. Then I found this:

It is a front-end service that works in client-side user interfaces, which would include popped out utility bar item windows and parent/child iFrame windows (primarily Visualforce).

So the window has to not only be visible, i.e. non-background, but also popped out? Why would they impose such a restriction? How can I get my background utility bar item to listen to LMS messages?

3
  • which version of LMS are you using? Are you using the Spring 20 beta, or the pre-release Summer 20 GA?
    – pchittum
    Jun 17, 2020 at 14:16
  • Spring '20. Actually I'm not exactly sure how to upgrade myself to Summer '20 pre-release, gotta figure that out.
    – kamezaburo
    Jun 18, 2020 at 16:44
  • If you just want to test if it works, easiest is probably to sign up for a pre-release Developer Edition org here. The sandbox preview window has passed.
    – pchittum
    Jun 21, 2020 at 6:50

1 Answer 1

0

There are some features that have been added to LMS in the Summer 20 GA. The one that should help you is called scope.

There are two scopes, active (which is the default) and application.

Utility bar items are always treated as active (whether popped out, selected, or in the background).

There's information about this in the release notes and there was a blog post published this past week to talk about the GA of LMS.

1
  • Hi there, I'm looking an answer on how to stream LMS messages/events without the need to have a click event. there is nothing mentioned in the DOCs. Unfortunately, that stops me from migrating from a VF in iFrame using a postMessage() to the simpler LMS channel messages. Works fine when sending the LMS message on click events. Trying to fake the clicks in the VF doesn't help. Link to my question is avialable here salesforce.stackexchange.com/q/416378/128410 Jan 30 at 12:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .