I've spent a lot of time digging into this, and if there's a solution, it is eluding me. Here are the facts:
- I have a Custom Object.
- I have defined a Lightning Record Page for it (Flexipage under the hood), which contains some custom Lightning Components. It is the default View for my Custom Object. This works great on the desktop Lightning Experience.
- In Salesforce1, I want to be able to navigate to the default view of one of these Custom Object records and see it using the Lightning Record Page.
My understanding/belief was that one big advantage of Lightning was that it would give us painless re-use between Desktop and Mobile settings, but when I navigate to a Custom Object using "sforce.one.navigateToSObject()
" on Salesforce1, I am always presented with the Salesforce-generated default object view rather than my custom Lightning Record Page.
I have been attempting a workaround of this by forwarding to a Visualforce page and manually instantiating the Lightning Components with JavaScript, but that is pretty painful by comparison.
Is there something I'm missing here? How do we get our custom Lightning Record Pages to show up in Salesforce1 when we link to them?