# Background service

**URL:** <https://forum.ionicframework.com/t/background-service/50214>\
**Category:** cordova\
**Created:** [April 24, 2016, 4:26am UTC](https://forum.ionicframework.com/t/background-service/50214 "2016-04-24T04:26:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![filipebr](https://avatars.discourse-cdn.com/v4/letter/f/f14d63/32.png) [@filipebr](https://forum.ionicframework.com/u/filipebr)\
**Post date:** [April 24, 2016, 4:26am UTC](https://forum.ionicframework.com/t/background-service/50214/1 "2016-04-24T04:26:27Z")

</div>

Hello,

I know its not a question directly about Ionic, but here’s my situation:  
I’m using Ionic and Cordova (NO phonegap) and I need to periodically (like twice a day, or something like that) update some data on Sqlite Database even when the app is closed. I tried to use the plugin: [https://github.com/katzer/cordova-plugin-background-mode](https://github.com/katzer/cordova-plugin-background-mode), but it was not enough because the app can get closed and my task wont be done.

Is there a way to do a perodic service even with the app closed? A way, like coding this service in Java (native) or something like that?

Thank you

---

<div class="post-metadata">

**Author:** ![fovaka](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fovaka](https://forum.ionicframework.com/u/fovaka)\
**Post date:** [May 12, 2016, 10:23am UTC](https://forum.ionicframework.com/t/background-service/50214/2 "2016-05-12T10:23:43Z")

</div>

Same issue…

Is there any solution, how to achieve this?

---

<div class="post-metadata">

**Author:** ![filipebr](https://avatars.discourse-cdn.com/v4/letter/f/f14d63/32.png) [@filipebr](https://forum.ionicframework.com/u/filipebr)\
**Post date:** [May 31, 2016, 2:11am UTC](https://forum.ionicframework.com/t/background-service/50214/3 "2016-05-31T02:11:00Z")

</div>

I created my own Cordova Plugin

---

<div class="post-metadata">

**Author:** ![mrameezraja](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mrameezraja/32/12745_2.png) [@mrameezraja](https://forum.ionicframework.com/u/mrameezraja)\
**Post date:** [May 31, 2016, 6:54am UTC](https://forum.ionicframework.com/t/background-service/50214/4 "2016-05-31T06:54:20Z")

</div>

@filipebr can you share your plugin?

---

<div class="post-metadata">

**Author:** ![hokafi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hokafi/32/102448_2.png) [@hokafi](https://forum.ionicframework.com/u/hokafi)\
**Post date:** [August 16, 2016, 11:50am UTC](https://forum.ionicframework.com/t/background-service/50214/5 "2016-08-16T11:50:47Z")

</div>

oh  
can you shared your own plugin?  
i need this so much  
☹

---

<div class="post-metadata">

**Author:** ![xiaofanwu](https://avatars.discourse-cdn.com/v4/letter/x/278dde/32.png) [@xiaofanwu](https://forum.ionicframework.com/u/xiaofanwu)\
**Post date:** [August 30, 2016, 6:32pm UTC](https://forum.ionicframework.com/t/background-service/50214/6 "2016-08-30T18:32:33Z")

</div>

I have the same problem and it would be great if someone can let us know how they solved the problem
