{"action":"created","issue":{"url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/325","repository_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode","labels_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/325/comments","events_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/325/events","html_url":"https://github.com/katzer/cordova-plugin-background-mode/issues/325","id":267939923,"node_id":"MDU6SXNzdWUyNjc5Mzk5MjM=","number":325,"title":"On Android the app stays above the lock screen","user":{"login":"ThorConzales","id":9930079,"node_id":"MDQ6VXNlcjk5MzAwNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/9930079?v=4","gravatar_id":"","url":"https://api.github.com/users/ThorConzales","html_url":"https://github.com/ThorConzales","followers_url":"https://api.github.com/users/ThorConzales/followers","following_url":"https://api.github.com/users/ThorConzales/following{/other_user}","gists_url":"https://api.github.com/users/ThorConzales/gists{/gist_id}","starred_url":"https://api.github.com/users/ThorConzales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThorConzales/subscriptions","organizations_url":"https://api.github.com/users/ThorConzales/orgs","repos_url":"https://api.github.com/users/ThorConzales/repos","events_url":"https://api.github.com/users/ThorConzales/events{/privacy}","received_events_url":"https://api.github.com/users/ThorConzales/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-24T08:24:27Z","updated_at":"2018-06-11T13:05:19Z","closed_at":null,"author_association":"NONE","body":"When using this plugin and when the app is active and when powering off the screen (locking the phone) then the the app stays above the lock screen. For security reasons this is unwanted behavior. \r\n\r\nCurrently the only workaround is to listen for Cordova's pause event which is triggered when the power button is pressed and inside that event moveToBackground() has to be called. However such behavior isn't user friendly and not so reliable either. For example I have noticed that pause events are sometimes triggered on the app startup."},"comment":{"url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/comments/396236235","html_url":"https://github.com/katzer/cordova-plugin-background-mode/issues/325#issuecomment-396236235","issue_url":"https://api.github.com/repos/katzer/cordova-plugin-background-mode/issues/325","id":396236235,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjIzNjIzNQ==","user":{"login":"derrohrbach","id":13820214,"node_id":"MDQ6VXNlcjEzODIwMjE0","avatar_url":"https://avatars0.githubusercontent.com/u/13820214?v=4","gravatar_id":"","url":"https://api.github.com/users/derrohrbach","html_url":"https://github.com/derrohrbach","followers_url":"https://api.github.com/users/derrohrbach/followers","following_url":"https://api.github.com/users/derrohrbach/following{/other_user}","gists_url":"https://api.github.com/users/derrohrbach/gists{/gist_id}","starred_url":"https://api.github.com/users/derrohrbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derrohrbach/subscriptions","organizations_url":"https://api.github.com/users/derrohrbach/orgs","repos_url":"https://api.github.com/users/derrohrbach/repos","events_url":"https://api.github.com/users/derrohrbach/events{/privacy}","received_events_url":"https://api.github.com/users/derrohrbach/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T13:05:19Z","updated_at":"2018-06-11T13:05:19Z","author_association":"NONE","body":"You can use my fork if you do not need the unlock/above lockscreen/turn screen on functionality"}}
{"actor":{"display_login":"derrohrbach"}}