0

I have two lightning components on a product detail object page within my community. These two components have the standard force:recordData stuff in them:

<aura:attribute name="record" type="Object"/>
<aura:attribute name="simpleRecord" type="Object"/>
<aura:attribute name="recordError" type="String"/>

<force:recordData aura:id="recordLoader"
  recordId="{!v.recordId}"
  layoutType="FULL"
  targetRecord="{!v.record}"
  targetFields="{!v.simpleRecord}"
  targetError="{!v.recordError}"
  recordUpdated="{!c.handleRecordUpdated}"
  />

The issue that I'm running in to is that on mobile, and only on mobile (even simulated within Chrome's mobile inspector) the record doesn't load and I get the error This entity is not currently supported by force:recordData. If I'm viewing these on desktop it works just fine. Furthermore, looking at the list of supported entities, Product2 is one of them. I'm guessing that I'm missing something super simple here but not quite sure where to start looking how to go about fixing this. Any help would be appreciated. Thanks!

1 Answer 1

0

As per salesforce documentation, Lightning Data Service is not supported on mobile.

3
  • 1
    developer.salesforce.com/docs/atlas.en-us.lightning.meta/… "Lightning Data Service is only available in Lightning Experience and the Salesforce app." <-- Salesforce app means mobile.
    – Charles T
    Commented May 20, 2018 at 1:49
  • 1
    Bhawna, when you refer to the documentation when posting an answer, it's always best to provide a link to the documentation that you're referring to. It appears that @CharlesT has provided a link to documentation that disputes your answer.
    – crmprogdev
    Commented May 20, 2018 at 11:48
  • @crmprogdev Agreed!
    – Bhawna
    Commented May 24, 2018 at 6:26

You must log in to answer this question.

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