Android iOS Shared User Preferences

Stable Version 1.0.1 (OutSystems 11)
Published on 4 Jan by 
Created on 1 Jan
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 ]
Read More

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

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

Suggestions are most welcome !!

What’s new (1.0.1)

GetAllKeys : Returns a Text-List of All Keys define in preferences.

Reviews (1)
1 Jan
in version 1.0.0
Used and tested on Android7, iPhone-SE and iPhone-X
Libraries, Mobile Plugins, Components, Developer Tools
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from assif_tiger who created this component.
Android iOS Shared User Preferences has no dependencies.
Component Consumers
No consumers yet.
Weekly Downloads