Skip to Content
jQuery Mobile: Up and Running
book

jQuery Mobile: Up and Running

by Maximiliano Firtman
February 2012
Beginner to intermediate
272 pages
6h 20m
English
O'Reilly Media, Inc.
Content preview from jQuery Mobile: Up and Running

Chapter 11. Packaging for Stores

Some people claim “Stores are the future of apps.” To be honest, nobody knows if the future of app distribution will be store-based, browser-based, or a hybrid mechanism. The great thing about using HTML5 content—and jQuery Mobile in particular—is that we can also package our webapp as a native app for store distribution.

Therefore, if you want to distribute your app in application stores, you can definitely do that using jQuery Mobile. There are different approaches for doing that regarding the platform you want to target.

The first thing to understand is that we need to create one package per platform. In some way, we need to copy our files (HTML, JavaScript, CSS, and jQuery Mobile files) in different projects and create different packages.

Note

There is a group inside W3C working on a future standard for packaging webapps for distribution. The group is Native Web apps and its URL is http://www.w3.org/community/native-web-apps/.

When we package a webapp as a native application, we usually have the ability to access some new APIs that are not typically in HTML5, such as Camera, Contacts, or Accelerometer.

To package our webapp for store distribution we can:

  • Create a native project for every platform, add our webapp files as local resources, and use a Web View component and bind it to our HTML content. Sometimes this idea is called a hybrid app.

  • Use an official webapp platform, which usually means packaging our files in a ZIP archive.

  • Use a native compilation ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

jQuery Mobile

jQuery Mobile

Jon Reid

Publisher Resources

ISBN: 9781449331085Errata Page