Couchbase PhoneGap - Android 5.0 not working - SOLVED


#1

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?
Thanks
Luca


#2

UPDATE:
it seems that changing code to:

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

Solves the problem.