Skip to main content
Version: v6

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.

https://github.com/dpa99c/cordova-plugin-cloud-settings

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation

$ npm install cordova-plugin-cloud-settings 
$ npm install @awesome-cordova-plugins/cloud-settings
$ ionic cap sync

Supported Platforms

  • Android
  • iOS

Usage

React

Learn more about using Ionic Native components in React

Angular

import { CloudSettings } from '@awesome-cordova-plugins/cloud-settings/ngx';


constructor(private cloudSettings: CloudSettings) { }

...

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

this.cloudSettings.load()
.then((settings: any) => this.settings = settings)
.catch((error: any) => console.error(error));

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