setInterval running in the background.

Hi!

I have a question regarding setInterval in Fuse.

Currently i’m using setInterval to poll the server at a given interval, but it seems like the app is polling even when the app is in the background. Is this intended behavior?

Running just a simple example:

var currentState = 0;
Lifecycle.on("stateChanged", function(newState) {
	currentState = newState;
});
 setInterval(function(){
    	if(Environment.android && currentState == Lifecycle.BACKGROUND) {
             console.log("Should'nt really happen");
	}
    }, 2000);

Keeps outputting to the console even when the app is closed.