Skip to main content
prem anand (wipro) 님이 #Trailhead Challenges에 질문했습니다

Hi I'm stuck on one thing there is one component where it will create a case. but the cancel button on android is not working when we talk with sf team they told like workspace API is  not compatible for android if we use workspace then compatability issue will occur and if we want to use then asked me  to use if it is in mobile then do this way and if it is for mobile then do this.

 

can anyone help me on this issue its been a  month I'm looking for resolution@【Salesforce公式】 Trailhead Japan

 

#Trailhead Challenges

답변 3개
  1. 2021년 8월 29일 오후 3:01

    Hmm, the only thing I could think of would be two have two separate components, one that loads for desktop users and the one that loads for mobile users. Each component could then call their own respective function. As far as using a single component to call a different function depending on whether the user is a desktop or mobile user, I believe you do something by importing the form factor, and making your function call based on the response: https://www.forcetrails.com/2020/10/detect-device-form-factors-in-lwc.html

     

    However, getting into custom development it outside my expertise. It might be worth trying to also post this on the developer forums where you should be able to get more developer eyes on this.

     

    https://developer.salesforce.com/forums?dc=Apex_Code_Development#!/feedtype=RECENT&criteria=ALLQUESTIONS&

0/9000