function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shweta GargShweta Garg 

Is lightning/empApi module supported in mobile phone?

Hello All,

I am building a mobile application for chatter using lightning web component. whenever a  new message comes,it should appear in chatting box.
I was implementing it through platform events and lightning.empApi module to get the latest message on chatbox.

This is working in desktop not in mobile phone.
Is lightning/empApi module supported in mobile phone?
OR is there any other workaround ?
Please help.

Thanks,
Shweta

 
Best Answer chosen by Shweta Garg
SwethaSwetha (Salesforce Developers) 
HI Shweta,
The empAPI is not supported in Mobile devices.
Reference: https://salesforce.stackexchange.com/questions/317720/subscribing-platform-events-from-lighting-component-in-mobile/317746#317746

Also, as per the documentation(https://developer.salesforce.com/docs/component-library/bundle/lightning:empApi/documentation) the Experience section in the documentation says, the supported experience is Lightning Experience.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you

All Answers

SwethaSwetha (Salesforce Developers) 
HI Shweta,
The empAPI is not supported in Mobile devices.
Reference: https://salesforce.stackexchange.com/questions/317720/subscribing-platform-events-from-lighting-component-in-mobile/317746#317746

Also, as per the documentation(https://developer.salesforce.com/docs/component-library/bundle/lightning:empApi/documentation) the Experience section in the documentation says, the supported experience is Lightning Experience.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
This was selected as the best answer
Shweta GargShweta Garg
Hi Swetha,

Thank you so much  for you reply.
Is there any other workaround to solve  this problem?
SwethaSwetha (Salesforce Developers) 
HI Shweta, There is no workaround per my knowledge.Thanks