Problem with cordovaPreferences

I’m trying to use $cordovaPreferences on my app but when I use $cordovaPreferences.set or $cordovaPreferences.get, nothing happen. Example:

		    $cordovaPreferences.set('name_identifier', 'homer').then(function () {
	      	alert('Set');
	    });

The message ‘Set’ is not displayed.

Thanks.