android - Phonegap Build - local notification plugin server request -


i want check if there new messages on server. if yes, display notification. using local-notification plugin. the problem is, code doesn't work when app closed...

my code in index.html

setinterval() {          $(".news_div").load ("http://www.website.com/news");     },7000); 

and on server

cordova.plugins.notification.local.schedule({    text: "hi user" }); 

thanks


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -