Chetan
Chetan

Reputation: 5095

What are packaged app in context of chrome app development?

I am new to chrome app development and I am trying to build a simple Chrome App which will have a database. I will be storing the data locally on the system.

While going through the documentation in the Saving data locally section, there's a note which is as follows:

Note: Packaged apps cannot use Web SQL Database or localStorage. The WebSQL specification has been deprecated for awhile now, and localStorage handles data synchronously (which means it can be slow). The Storage API handles data asynchronously.

So I am confused here, what is exactly a packaged app? And what is the other type of app where there are no restrictions on storing data?

Upvotes: 0

Views: 72

Answers (1)

Xan
Xan

Reputation: 77561

So I am confused here, what is exactly a packaged app?

Everything that the current documentation refers to as Chrome App. "Packaged app" is an old term for the same.

What is the other type of app where there are no restrictions on storing data.

For completeness' sake, the other two types of apps are:

  1. Legacy packaged apps. They are an ancient version of Chrome apps with a different API, that has been deprecated since 2014.

  2. Hosted apps, which a fancy name for a webapp with a manifest file that's uploaded to the Web Store. They act pretty much like a web shortcut in the apps list (with few extra features).

Those are either not supported or completely different - they won't help you with restrictions. So, learn to use the tools that are available and are mentioned in the docs.

Upvotes: 2

Related Questions