Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Timer Task rung in background Javascript or Cordova App

I'm looking forward to implement reminder application using cordova. I'm looking for a posibility to implement background task using javascript. Even the application is not active it should run in background. Is this task possible with java script or Do I need to develop a plugin using Cordova (Android & IOs)

like image 821
Chinthaka Devinda Avatar asked Jan 08 '14 01:01

Chinthaka Devinda


2 Answers

I believe it is not possible to do background work when the app (browser is not active) so I found a great library for cordova

https://github.com/katzer/cordova-plugin-local-notifications

like image 175
Chinthaka Devinda Avatar answered Oct 22 '22 18:10

Chinthaka Devinda


I did not found ways to manage background tasks using javascript. Here are few related link to do cordova plugins

  • https://github.com/jocull/phonegap-backgroundjs

  • https://github.com/Red-Folder/bgs-core/wiki/Build-your-own-Background-Service

BR

Richard

like image 4
rlasjunies Avatar answered Oct 22 '22 18:10

rlasjunies