# How to run http call as background in ionic Framework?

**URL:** <https://forum.ionicframework.com/t/how-to-run-http-call-as-background-in-ionic-framework/27821>\
**Category:** uncategorized\
**Created:** [July 7, 2015, 7:20am UTC](https://forum.ionicframework.com/t/how-to-run-http-call-as-background-in-ionic-framework/27821 "2015-07-07T07:20:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitubansal](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitubansal](https://forum.ionicframework.com/u/hitubansal)\
**Post date:** [July 7, 2015, 7:20am UTC](https://forum.ionicframework.com/t/how-to-run-http-call-as-background-in-ionic-framework/27821/1 "2015-07-07T07:20:42Z")

</div>

I am using ionic Framework. i have multiple HTTP service which is working fine. Now problem is that whenever i get response of any http call. i can’t proceed further.

Can we run HTTP Service as a background process. So my application continues works without waiting for result.

here is my code

```
articleService.getArticles().then(function() {

    },function(err){

    });

```

and sercvice code

```
$http({
                url: "http://myservice.com",
                data: { user_id: 1 },
                method: 'POST',
                withCredentials: true,
            }).success(function (data) {
                deferred.resolve(data);
            }).error(function (err) {
             deferred.resolve(0);
            })
            return deferred.promise;
        }

```

Any idea? I need a solution in ionic framework which will work both for ios and andriod?
