Alternative for Android iOS Shared User Preferences | Independent Module

An interface to the user’s defaults database, where you store key-value pairs persistently across launches of your app.- Supports both Android [ Shared Preferences ] & iOS [ User Preferences ]

This Component Provides the ability to save and retrieve persistent key-value pairs of any Javascript data type. You can use this Component to save any data: arrays, booleans, numbers, strings and objects. This data will persist across user sessions.

This Component uses SharedPreferences on Android and NSUserDefaults on iOS.

Supported platforms

  • Android
  • iOS


  • Save and Retrieve key-value pairs of any Outsystem Data Type using respective Get or Put Actions
  • Get Actions 
    • GetBoolean       : Retrieves a Boolean value from the preferences
    • GetInteger         : Retrieves a integer value from the preferences
    • GetLongInteger : Retrieves a Long-Integer value from the preferences
    • GetText              : Retrieves a text value from the preferences
  • Put Actions
    • PutBoolean       :  Sets a Boolean value in the preferences
    • PutInteger         :  Sets a integer value in the preferences
    • PutLongInteger :  Sets a  Long-Integer value in the preferences
    • PutText              :  Sets a text value in the preferences
  • ValidateActions
    • HasKey : Check the Specific Key is available or not in the preferences
    • CheckUserPrefrencesPlugin : Check for Cordova Defined & Plugin-Loaded
  • Clear Actions
    • DeleteKey : Removes a value from the preferences of the specified Key
    • ClearAllPreferences : Removes all key-values from the preferences

Android iOS Shared User Preferences Forge link :

Thanks @adriano-di-giovanni for Cordova Plugin Git Repository

- Assif

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.