function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bruce Yue -- SF ArchitectBruce Yue -- SF Architect 

Salesforce Hybrid Mobile APP

What is the best way to build a bybrid app?

Hybrid apps are built using HTML5 and JavaScript wrapped inside a thin container that provides access to native platform features. For the most part, hybrid apps provide the best of both worlds, being almost as easy to develop as HTML5 apps with all the functionality of native. In addition, hybrid apps can use the SmartSync Data Framework in JavaScript to model Salesforce data, query and search it, edit it, securely cache it for offline use, and synchronize it with the Salesforce server.
You know that native apps are installed on the device, while HTML5 apps reside on a Web server, so you might be wondering whether hybrid apps store their files on the device or on a server? You can implement a hybrid app locally or remotely.


You can package HTML and JavaScript code inside the mobile application binary, in a structure similar to a native application. In this scenario you use REST APIs and Ajax to move data back and forth between the device and the cloud.


Alternatively, you can implement the full web application from the server (with optional caching for better performance). Your container app retrieves the full application from the server and displays it in a browser window.
Kevin PKevin P
I think it's important to highlight the unique flexability of option 3: Salesforce 1. Salesforce 1 applications run inside a native container application put out and maintained by salesforce. These types of hybrid apps can be built using established Salesforce Declarative technology by non-coders (Indeed, there was a blog post awhile back about how one of the SF employees and his daughter built an app). Additionally they can be the launching ground for either mobile-friendly visualforce applications or Salesforce served js apps. The flexibility is important as the applications can launch within SF1, and present a fully mobile UI from visualforce through tools such as Ionic. These are, in my opinion, the best experience by far. 
Hi Bruce,

For me, Backbone.js, underscore.js and HTML5 are best way to develop Hybrid Mobile APP. I have developed some big application using them which are handling big data and are using native functionality.