Interval doesn't work in background

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