# Interval doesn't work in background

**URL:** <https://forum.ionicframework.com/t/interval-doesnt-work-in-background/71153>\
**Category:** ionic-v1\
**Created:** [November 23, 2016, 1:22pm UTC](https://forum.ionicframework.com/t/interval-doesnt-work-in-background/71153 "2016-11-23T13:22:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moscomaster](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@moscomaster](https://forum.ionicframework.com/u/moscomaster)\
**Post date:** [November 23, 2016, 1:22pm UTC](https://forum.ionicframework.com/t/interval-doesnt-work-in-background/71153/1 "2016-11-23T13:22:58Z")

</div>

I am making interval that run function get wifi info and send to database  
it’s work fine when open app.  
plugin-background-mode working and show text "Myapp1 running in background"  
but function “$scope.startGetWifiInfo();” doesn’t work when I use app in background.

can someone help me find a solution please  
here is code interval is in controller.js

> **[Plunker](https://plnkr.co/edit/IL4qBa?p=info)**
>
> Created on Plnkr: Helping developers build the web.
