April Showers Bring May Travels

Oh man, that's a horrible title. I'm kinda ashamed I wrote that but it's done now and there is no way to change things on the internet. Anyway, for most of the month of May I'll be in and around the EU hitting up conferences and meet up's. If you are in any of these cities and would be interested in getting together for a coffee to talk shop please let me know.

First I'll be headed to Basel, Switzerland on May 2nd and 3rd for an internal Adobe Open Source Summit. Then I'll head over to Berlin, Germany for JS Conf EU from May 4th to 7th. Next I'm popping over to London to talk at a Women Who Code meet up. It is in London where I hope to finally be able to see Guardians of the Galaxy Vol 2, so please no spoilers. Up next is a jaunt over to JS Day ES where I'm speaking on the 13th but hanging around for a few more days before I end up in Amsterdam on the 16th for PhoneGap Day EU which is on the 18th and 19th.

It should be a great, but busy, trip. If you have any good suggestions for things to see in do particularly in Berlin or Madrid please tweet them at me.

 

cordova-plugin-allow-backup

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 cordova-android projects as it is omitted from the AndroidManifest.xml file.

<application ...
    android:allowBackup="true">
</app>

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. As well the phonegap-plugin-contentsync project stores it's files in a backed up directory on Android.

If you don't want this default behaviour on Android you can disable Auto Backup. Include cordova-plugin-allow-backup in your project:

cordova plugin add cordova-plugin-allow-backup

If you want to set the property to true use the BACKUP  variable.

cordova plugin add cordova-plugin-allow-backup --variable BACKUP=true

UPDATE!!!

So I totally biffed on the fact that edit-config is now supported in config.xml as well as plugin.xml so you don't need the above plugin. All you need to do is add an edit-config section to your config.xml file like this:

<platform name="android">
    <edit-config file="AndroidManifest.xml" 
                 target="/manifest/application" 
                 mode="merge">
        <application android:allowBackup="false"/>
    </edit-config>
</platform>