{"action":"created","issue":{"url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/99","labels_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/99/comments","events_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/99/events","html_url":"https://github.com/katzer/cordova-plugin-background-mode/issues/99","id":92825263,"number":99,"title":"Background mode seems to crash","user":{"login":"LacioDrom","id":4662612,"avatar_url":"https://avatars.githubusercontent.com/u/4662612?v=3","gravatar_id":"","url":"https://api.github.com/users/LacioDrom","html_url":"https://github.com/LacioDrom","followers_url":"https://api.github.com/users/LacioDrom/followers","following_url":"https://api.github.com/users/LacioDrom/following{/other_user}","gists_url":"https://api.github.com/users/LacioDrom/gists{/gist_id}","starred_url":"https://api.github.com/users/LacioDrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LacioDrom/subscriptions","organizations_url":"https://api.github.com/users/LacioDrom/orgs","repos_url":"https://api.github.com/users/LacioDrom/repos","events_url":"https://api.github.com/users/LacioDrom/events{/privacy}","received_events_url":"https://api.github.com/users/LacioDrom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-03T08:46:38Z","updated_at":"2015-07-21T08:12:55Z","closed_at":null,"body":"Hi guys,\r\n\r\nI've got an ionic app which makes get http request to a server every 5 minutes (I'm using $interval  - $http.jsonp(url)) but sometimes cordova-plugin-background-mode seems to crash: Menu pull-down notifications doesn't display no more neither title nor text (cordova.plugins.backgroundMode.setDefaults({title:'myTitle', text:'myText'});) and if I try to restore the application to foreground (clicking onto icon app) the app restarts! :(\r\n\r\nI've also tried to use power management plugin as suggested by boltex here https://github.com/katzer/cordova-plugin-background-mode/issues/98 but without any success.\r\n\r\nI'm using a Samsung Galaxy S3 (Android 4.3)\r\n\r\nThanks a lot for any clue"},"comment":{"url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/comments/123208737","html_url":"https://github.com/katzer/cordova-plugin-background-mode/issues/99#issuecomment-123208737","issue_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/99","id":123208737,"user":{"login":"LacioDrom","id":4662612,"avatar_url":"https://avatars.githubusercontent.com/u/4662612?v=3","gravatar_id":"","url":"https://api.github.com/users/LacioDrom","html_url":"https://github.com/LacioDrom","followers_url":"https://api.github.com/users/LacioDrom/followers","following_url":"https://api.github.com/users/LacioDrom/following{/other_user}","gists_url":"https://api.github.com/users/LacioDrom/gists{/gist_id}","starred_url":"https://api.github.com/users/LacioDrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LacioDrom/subscriptions","organizations_url":"https://api.github.com/users/LacioDrom/orgs","repos_url":"https://api.github.com/users/LacioDrom/repos","events_url":"https://api.github.com/users/LacioDrom/events{/privacy}","received_events_url":"https://api.github.com/users/LacioDrom/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T08:12:55Z","updated_at":"2015-07-21T08:12:55Z","body":"Googling I found these two interesting link which suggest some hints. Anyway they didn't solve the problem for me :(\r\n\r\n-  http://stackoverflow.com/questions/24691670/how-may-i-prevent-cordova3-2-app-from-being-kill-by-android-in-background\r\n\r\n-  http://stackoverflow.com/questions/21001439/keeprunning-phonegap-cordova\r\n\r\nUltimately I'm afraid this is a plugin bug. Hoping it will be resolved, at the moment, to have an Android app running in background fine we have to use a native solution using a service."}}