Cordova: How to clear cache of mobile on app logout?

Hi i have developed one mobile application in codova with ionic framework. I have build the app and started testing on android mobile. On logout click i have added this code behind:

        window.localStorage.clear();

But on mobile testing time when i logged out & tried login again. It showed me the same data after login twice, one below the another. How to stop coming that one?

My controller code:

window.localStorage.setItem("userid", UserId);
window.localStorage.setItem("username", Email);
window.localStorage.setItem("name", Username);
window.localStorage.setItem("token", data.token);

My logout code:

$scope.clearStorage = function() {
console.log('logging out');
window.localStorage.clear();
$state.go('intro');
}

i am accessing data as:

var queryString = base_url + "get/requestChartData.php";
var data = $.param({userid:window.localStorage.userid, token:token, chart: chartType});

$http.post(queryString, data).success(function (data, status, headers, config) {