{"action":"opened","issue":{"url":"https://api.github.com/repos/brudaswen/nimiq-android/issues/14","repository_url":"https://api.github.com/repos/brudaswen/nimiq-android","labels_url":"https://api.github.com/repos/brudaswen/nimiq-android/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/brudaswen/nimiq-android/issues/14/comments","events_url":"https://api.github.com/repos/brudaswen/nimiq-android/issues/14/events","html_url":"https://github.com/brudaswen/nimiq-android/issues/14","id":341532308,"node_id":"MDU6SXNzdWUzNDE1MzIzMDg=","number":14,"title":"Oreo: Crash due to startService()","user":{"login":"brudaswen","id":790875,"node_id":"MDQ6VXNlcjc5MDg3NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/790875?v=4","gravatar_id":"","url":"https://api.github.com/users/brudaswen","html_url":"https://github.com/brudaswen","followers_url":"https://api.github.com/users/brudaswen/followers","following_url":"https://api.github.com/users/brudaswen/following{/other_user}","gists_url":"https://api.github.com/users/brudaswen/gists{/gist_id}","starred_url":"https://api.github.com/users/brudaswen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brudaswen/subscriptions","organizations_url":"https://api.github.com/users/brudaswen/orgs","repos_url":"https://api.github.com/users/brudaswen/repos","events_url":"https://api.github.com/users/brudaswen/events{/privacy}","received_events_url":"https://api.github.com/users/brudaswen/received_events","type":"User","site_admin":false},"labels":[{"id":985566569,"node_id":"MDU6TGFiZWw5ODU1NjY1Njk=","url":"https://api.github.com/repos/brudaswen/nimiq-android/labels/app-keyguard","name":"app-keyguard","color":"be19e8","default":false},{"id":985566240,"node_id":"MDU6TGFiZWw5ODU1NjYyNDA=","url":"https://api.github.com/repos/brudaswen/nimiq-android/labels/app-safe","name":"app-safe","color":"7f37f2","default":false},{"id":985553117,"node_id":"MDU6TGFiZWw5ODU1NTMxMTc=","url":"https://api.github.com/repos/brudaswen/nimiq-android/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":985603946,"node_id":"MDU6TGFiZWw5ODU2MDM5NDY=","url":"https://api.github.com/repos/brudaswen/nimiq-android/labels/prio%20urgent","name":"prio urgent","color":"fef2c0","default":false},{"id":985601715,"node_id":"MDU6TGFiZWw5ODU2MDE3MTU=","url":"https://api.github.com/repos/brudaswen/nimiq-android/labels/pts%202","name":"pts 2","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"brudaswen","id":790875,"node_id":"MDQ6VXNlcjc5MDg3NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/790875?v=4","gravatar_id":"","url":"https://api.github.com/users/brudaswen","html_url":"https://github.com/brudaswen","followers_url":"https://api.github.com/users/brudaswen/followers","following_url":"https://api.github.com/users/brudaswen/following{/other_user}","gists_url":"https://api.github.com/users/brudaswen/gists{/gist_id}","starred_url":"https://api.github.com/users/brudaswen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brudaswen/subscriptions","organizations_url":"https://api.github.com/users/brudaswen/orgs","repos_url":"https://api.github.com/users/brudaswen/repos","events_url":"https://api.github.com/users/brudaswen/events{/privacy}","received_events_url":"https://api.github.com/users/brudaswen/received_events","type":"User","site_admin":false},"assignees":[{"login":"brudaswen","id":790875,"node_id":"MDQ6VXNlcjc5MDg3NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/790875?v=4","gravatar_id":"","url":"https://api.github.com/users/brudaswen","html_url":"https://github.com/brudaswen","followers_url":"https://api.github.com/users/brudaswen/followers","following_url":"https://api.github.com/users/brudaswen/following{/other_user}","gists_url":"https://api.github.com/users/brudaswen/gists{/gist_id}","starred_url":"https://api.github.com/users/brudaswen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brudaswen/subscriptions","organizations_url":"https://api.github.com/users/brudaswen/orgs","repos_url":"https://api.github.com/users/brudaswen/repos","events_url":"https://api.github.com/users/brudaswen/events{/privacy}","received_events_url":"https://api.github.com/users/brudaswen/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/brudaswen/nimiq-android/milestones/1","html_url":"https://github.com/brudaswen/nimiq-android/milestone/1","labels_url":"https://api.github.com/repos/brudaswen/nimiq-android/milestones/1/labels","id":3477411,"node_id":"MDk6TWlsZXN0b25lMzQ3NzQxMQ==","number":1,"title":"Sprint 001","description":"","creator":{"login":"brudaswen","id":790875,"node_id":"MDQ6VXNlcjc5MDg3NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/790875?v=4","gravatar_id":"","url":"https://api.github.com/users/brudaswen","html_url":"https://github.com/brudaswen","followers_url":"https://api.github.com/users/brudaswen/followers","following_url":"https://api.github.com/users/brudaswen/following{/other_user}","gists_url":"https://api.github.com/users/brudaswen/gists{/gist_id}","starred_url":"https://api.github.com/users/brudaswen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brudaswen/subscriptions","organizations_url":"https://api.github.com/users/brudaswen/orgs","repos_url":"https://api.github.com/users/brudaswen/repos","events_url":"https://api.github.com/users/brudaswen/events{/privacy}","received_events_url":"https://api.github.com/users/brudaswen/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2018-07-06T06:32:07Z","updated_at":"2018-07-16T14:03:04Z","due_on":"2018-07-13T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-07-16T14:03:04Z","updated_at":"2018-07-16T14:03:04Z","closed_at":null,"author_association":"OWNER","body":"App crashes due to new background service rules [1].\r\n\r\nUse `ContextCompat.startForegroundService(context, intent);` to start the service. Maybe use `JobIntentService` \r\n\r\n[1] https://developer.android.com/about/versions/oreo/background\r\n\r\n```\r\nCaused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.nimiq.app.safe.api.ACTION_REQUEST_NETWORK_STATUS cmp=com.nimiq.app.safe/.api.NimiqService (has extras) }: app is in background uid null\r\n        at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1701)\r\n        at android.app.ContextImpl.startService(ContextImpl.java:1657)\r\n        at android.content.ContextWrapper.startService(ContextWrapper.java:644)\r\n        at com.nimiq.app.base.service.BaseNimiqService$$CC.requestNetworkStatus$$STATIC$$(Unknown Source:58)\r\n        at com.nimiq.app.keyguard.KeyGuardApplication.listenToNimiqNetwork(KeyGuardApplication.java:22)\r\n        at com.nimiq.app.keyguard.KeyGuardApplication.onCreate(KeyGuardApplication.java:17)\r\n        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)\r\n```"}}
{"actor":{"display_login":"brudaswen"}}