Good morning BE team!,
I just realized that the async call to backendless.counters is not working.
function getID(object, property, table)
{
var counter = Backendless.Counters.of( table );
// sync call
var counterValue = counter.incrementAndGet();
console.log('counterValue: ' + counterValue); //works perfectly
// async call
counter.incrementAndGet( response );
Backendless.Counters.incrementAndGet( table, response);
function response (respuesta) //it is never called...
{
if(!isNaN(respuesta))
{
object[property] = respuesta;
}
}
}
I have to make asynchronous calls for my WP app to work, thus this is a major problem for me. Also this may fix this problem http://support.backendless.com/t/counters-not-working-in-nodejs