license: > Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

title: Archiviazione toc_title: Store data

Archiviazione

Una panoramica delle opzioni di archiviazione per Cordova.

Archiviazione diverse API sono disponibili per applicazioni di Cordova. Vedi html5rocks. per una panoramica più completa ed esempi.

LocalStorage

Conosciuto anche come web storage, archiviazione semplice, o dalla sua interfaccia alternativa archiviazione della sessione , questa API fornisce archiviazione coppia chiave/valore sincrona ed è disponibile in implementazioni di WebView sottostante. Consultare le specifiche W3C per dettagli.

WebSQL

Questa API è disponibile in WebView sottostante. La [Specifica di Database SQL Web]3 offre più tabelle di database completo accessibili tramite query SQL.

Le seguenti piattaforme di supporto WebSQL:

  • Android
  • BlackBerry 10
  • iOS
  • Tizen

IndexedDB

Questa API è disponibile in WebView sottostante. DB indicizzati offre più funzionalità che LocalStorage ma meno di WebSQL.

Le piattaforme seguenti supportano IndexedDB:

  • BlackBerry 10
  • Firefox OS
  • Windows Phone 8
  • Windows 8

Opzioni basate su plugin

Oltre l'archiviazione che API sopra elencate, il File API ti permette di memorizzare dati sul file system locale. Altri plugins Cordova forniscono opzioni di archiviazione simili.