Couchbase PhoneGap - Android 5.0 not working - SOLVED


I have developed an app with cordova, Couchbase and Ionic Framework.
Everything is working fine both in iOS and Android 4.4.x. Now I am testing the app on Android 5.0 and I get an error while getting the database url. I have used ToDoLite as a base for my app and I get the error on:

cblite.getURL(function(err, url) {
		if (err) {
			return done(err)

Where err = {}.
Do you have any idea where could be the problem?


it seems that changing code to:

window.cblite.getURL(function(err, url) {
	if (err) {
		return done(err)

Solves the problem.