Cloud Settings


Stores app settings in cloud storage so if the user re-installs the app or installs it on a different device, the settings will be restored and available in the new installation.


If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Cloud Settings插件的安装(Installation)

ionic cordova plugin add cordova-plugin-cloud-settings npm install @ionic-native/cloud-settings
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/cloud-settings

Ionic Cloud Settings插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Cloud Settings插件的用法(Usage)

import { CloudSettings } from '@ionic-native/cloud-settings/ngx';

constructor(private cloudSettings: CloudSettings) { }


  .then((exists: boolean) => console.log("Saved settings exist: " + exists) )

  .then((settings: any) => this.settings = settings)
  .catch((error: any) => console.error(error));
  .then((savedSettings: any) => console.log("Saved settings: " + JSON.stringify(savedSettings)))
  .catch((error: any) => console.error(error));