Create a remote couchdb database within ionic apps

I’m building an ionic 3 app, and I’m using PouchDB and CouchDB for synchronization. To create the remote databases, I used the command as recommended in the official documentation:

note: The remote database will not be created until you do an API call, e.g.: The reason behind that is that the PouchDB constructor is completely synchronous, for ease of error handling (i.e. no asynchronous errors).

Here is the code I used in my app:

let remotex = new PouchDB('https://' + auth + '@' + 'xxx.xx:6984/' + xx + '_xx');
return remotex
  .then((res) => {
    return res;
  .catch(function(err) {
    console.log('error : ', err);
    return err;

This is working fine; the remote databases are created and the sync is working great only when I build my app in the debugging mode:

ionic cordova build android --prod --buildConfig

But, the the remote databases are not created when in the release version:

ionic cordova build android --prod --release --buildConfig

Does the command “.info()” work only in debug mode ? Is there any other method to create the remote databases and make the sync working ?

ps: I’ve posted the same question here: