2

This question already has an answer here:

I want to make an app and publish it to the AppExchange and I want it to be available in both Classic and Lightning Experience. I went through this question and through lightning design system . So the advice is to make a classic app and adjust Visualforce to comply with lightning design system. Is this the only way (using Visualforce and making it lightning ready) or I can create a "Lightning App" from the Lightning UI like on the image below: enter image description here and add Lightning pages to it? Will it also be "Lightning ready" app?

So my main confusion is the difference beween Lightning App and Lightning ready app. (by "Ligtning App" I don't mean the Aura Lightning Application which is a container for Lightning components, but the app like the one on the image above)

Can I create a Lightning app (by clicking on "New Lightning App") and publish it to AppExchange? If I can, will it be available in both Lightning experience and classic UI?

marked as duplicate by Eric, glls, Mohith Shrivastava, Santanu Boral, Tushar Sharma Sep 24 '17 at 9:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Please go through this link salesforce.stackexchange.com/questions/175594/… – Piyush Kumar Jun 13 '17 at 12:11
  • @PiyushKumar it doesn't answer my question. It also talks about visualforce and UI/UX. My question is about "Lightning App" type of app and is it going to be available in the classic UI. – MaliRadojica Jun 13 '17 at 14:04
  • Lightning App directly not available in Salesforce Classic UI. – Piyush Kumar Jun 15 '17 at 6:03
1

I'm not sure why they bothered making a distinction between a Lightning "App" and a Lightning "Component" since they are essential the same thing. You can build a component that implements force:appHostable and then use Lightning out to render it in a visualforce page and make it a tab in SF1 and LEX. You'll need to create an app with the dependencies defined for lightning out, and if your component fires SF1 / LEX events you'll need to add handlers in the visualforce page.

  • So the answer to my question "Is this the only way (using Visualforce and making it lightning ready).." is "Yes"? I need to use Visualforce? – MaliRadojica Jun 14 '17 at 8:17
  • Yes with lightning out. You don't have to write new components but you have two wrap them in a visualforce page. – Scott Morrison Jun 14 '17 at 12:13
0

@Piyush Kumar and @Scott Morrison answered my question in comments. So in order for an app to be available in both classic and lightning experience, you need to use visualforce and make it "lightning ready". You can use lightning components in visualforce pages using lightning out

Tnx guys!

  • That is correct. Pro tip: if you wanna ensure your components fit classic appearance, use <aura:application extends="ltng:outAppUnstyled" > and Visualforce CSS classes in your component markup (behind a context aware toggle). – dzh Nov 11 '18 at 22:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.