+ Start a Discussion
Jagat Nibas MahapatraJagat Nibas Mahapatra 

Salesforce lightning and mobile platform

Hi All,

I am relatively new to salesforce and am still learning the ropes, hence pardon me for any stupid question. My assignment now is to build something in lightning and run it in mobile.

My questions are:

is it possible to develop a lighting component [i assume the snd result is html5 and js] and wrap it around a mobile app. [say android java !]
what would be my approach to start with a simple app and then extend it further ?

thanks and regards
jagat
PratikPratik (Salesforce Developers) 
Hi Jagat,

You can build the Lightning component through Developer console in your dev org.

Here is the guide for Lightning app:
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/

This will help you to get started.

Thanks,
Pratik
Abhinav MIshraAbhinav MIshra
Hi Jagat

Yes it is possible to develop lighting component and wrap it around a mobile app.
I can help you with some explanantion about the components and provide you with some links for tutorials.

Components are the self-contained and reusable units of an app. They represent a reusable section of the UI, and can range in granularity from a single line of text to an entire app.


These are some of the links that help you to build a simple app as they are provided with video that you can follow.

http://blog.jeffdouglas.com/2014/10/14/tutorial-build-your-first-lightning-component/



https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_overview.htm


The above link explains all about components in detail.

I hope this will help you

Thanks!
Reetesh Makkar
Jagat MJagat M
I was tryin to start with a hello world following this https://developer.salesforce.com/resource/pdfs/Lightning_QuickStart.pdf

i am stuck at step 2 where is setup ?
Jagat MJagat M
OOps sorry, stupid question again, i figured out i was not inside dev platform. Nice to see all-cloud platform. But i wonder if an offline env exists.

nonethless,

- now that i am able to create a lightning component inside lightning app running, is there a link / tutorial to make it an ipa ?
PratikPratik (Salesforce Developers) 
Hi Jagat,

It's all in developer console now. So you carate the lightning components through developer console.

Thanks,
Pratik
Jagat MJagat M
Thanks pratik,

I am able to log in into dev console and create a simple lightning component. But that is a hosted app which runs in browser. My problem is how to convert it into a mobile app whose executable is a apk / ipa, anybody ?

I see that the application starts with <aura:application> when i try editing aura, it gives me error. why so ? similarly for component it is aura:component

regards
Jagat
 
KK Ramamoorthy:-)KK Ramamoorthy:-)
To your specific question, as of now, Lightning components can only run within Salesforce1 app. Salesforce1 app is an app developed and supported by Salesforce and available for download from iTunes App Store and Google store. Salesforce1 app acts as a container for your lightning component and apps.

To develop custom native apps, you will have to use Salesforce Mobile SDK instead. Lightning components are not meant to be used within your own native apps at this point. Note that Lightning Components and apps can also be run on Desktops as you have already seen using the one.app URL or 'Preview'

Please take sometime to review the fundamentals of lightning components at https://www.salesforce.com/us/developer/docs/lightning/lightning.pdf

Also, this FAQ to answer some of your questions - https://developer.salesforce.com/page/Lightning_FAQ