Compatibility with phonegap build