0

I Have a LWC component setup to use CDC to refresh the apex of a varity of objects this intern affects the DOM (icons change / menu options change etc) this works fine on desktop however on the Salesforce Mobile app it seems to cache the display (i need to phisicly close the app and reopen for the record to change, just refreshing doesnt work) i have also verified that cache is disabled in my org.

Can anyone tell me is CDC supported on mobile? i didnt see any indication that it wasnt.

  • If not how would i refresh dom content based on the record being changed by a integration / 3rd party?
3
  • Change Data Capture is a mechanism not running on any clients - desktops or mobile. But the empApi is, and it is explicitly not supported on mobile phones - and this is probably what you use. Commented Nov 30, 2023 at 13:39
  • @FelixvanHove your right im using lightning/empApi to subscribe to the CDC event, do you know of a method to do the same thing that is supported via the mobile app?
    – ravent
    Commented Nov 30, 2023 at 13:46
  • "Settings"-"Advanced"-"Clear Cached Data" in the Android app didn't help in your case? You could try build your own polling. Not that I recommend this. Commented Nov 30, 2023 at 18:26

1 Answer 1

1

As per the documentation -

The lightning/empApi module is supported in desktop browsers with web worker or shared worker support. It is not supported in the Salesforce mobile app.

As an alternative, you can use cometD to subscribe/unsubscribe to your streaming events.

You must log in to answer this question.

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