Mobile icon

allowBackup Android Plugin

Stable version 1.0.4 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded on 7 Feb by 
 (5 ratings)

allowBackup Android Plugin

To allow you to set the allowBackup property of a cordova-android application.
Read more

Any Android applications that target Android 6.0 (API level 23) or higher automatically participate in Auto Backup. This is because of the android:allowBackup attribute, which enables/disables backup. The property defaults to true in outystems-android projects as it is omitted from the AndroidManifest.xml file.

<application ...

This may cause you an issues if you are trying to clear localStorage as it will automatically be restored when the app is re-installed.

If you don't want this default behavior on Android you can disable Auto Backup. Include allowBackup Android Plugin in your project.

Like my components? Buy me a beer :) and support my work.

Release notes (1.0.4)
  • Small tweaks in the plugin code.
  • CheckAllowBackupAndroidPlugin will return an error and error message when not used on Android.
  • Replaced the preference name from "BACKUP" to a more descriptive name like "ALLOW_BACKUP" to avoid confusion.
  • "ALLOW_BACKUP" preference default value set to "false"
License (1.0.4)
Reviews (1)
in version 1.0.1
Beware:  Does not appear to work with MABS 5.0