{"action":"created","issue":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/493","repository_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation","labels_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/493/comments","events_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/493/events","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/493","id":369287348,"node_id":"MDU6SXNzdWUzNjkyODczNDg=","number":493,"title":"Android P Error on 2.xx","user":{"login":"rodrigoords","id":6132308,"node_id":"MDQ6VXNlcjYxMzIzMDg=","avatar_url":"https://avatars2.githubusercontent.com/u/6132308?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigoords","html_url":"https://github.com/rodrigoords","followers_url":"https://api.github.com/users/rodrigoords/followers","following_url":"https://api.github.com/users/rodrigoords/following{/other_user}","gists_url":"https://api.github.com/users/rodrigoords/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigoords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigoords/subscriptions","organizations_url":"https://api.github.com/users/rodrigoords/orgs","repos_url":"https://api.github.com/users/rodrigoords/repos","events_url":"https://api.github.com/users/rodrigoords/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigoords/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-11T20:14:55Z","updated_at":"2018-11-04T18:42:33Z","closed_at":"2018-11-04T18:42:33Z","author_association":"NONE","body":"With 2.xx version when running on android P system crash with stacktrace:\r\nandroid.app.RemoteServiceException: Bad notification for startForeground: \r\n```\r\njava.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 color=0x00000000 vis=PRIVATE)\r\n                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724)\r\n                      at android.os.Handler.dispatchMessage(Handler.java:106)\r\n                      at android.os.Looper.loop(Looper.java:164)\r\n                      at android.app.ActivityThread.main(ActivityThread.java:6649)\r\n                      at java.lang.reflect.Method.invoke(Native Method)\r\n                      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)\r\n                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826)\r\nE/UncaughtException: android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 color=0x00000000 vis=PRIVATE)\r\n                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724)\r\n                         at android.os.Handler.dispatchMessage(Handler.java:106)\r\n                         at android.os.Looper.loop(Looper.java:164)\r\n                         at android.app.ActivityThread.main(ActivityThread.java:6649)\r\n                         at java.lang.reflect.Method.invoke(Native Method)\r\n                         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)\r\n                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826) \r\n```\r\n\r\n## Your Environment\r\n* Ionic 3.xx project  \r\n* Plugin version: 2.3.6\r\n* Platform: Android\r\n* OS version: P\r\n* Device manufacturer and model: \r\n* Cordova version (`cordova -v`): 8.0.0\r\n* Cordova platform version (`cordova platform ls`): 7.1.0\r\n* Plugin configuration options: \r\n* Link to your project:\r\n"},"comment":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/comments/435694822","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/493#issuecomment-435694822","issue_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/493","id":435694822,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTY5NDgyMg==","user":{"login":"mauron85","id":359450,"node_id":"MDQ6VXNlcjM1OTQ1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/359450?v=4","gravatar_id":"","url":"https://api.github.com/users/mauron85","html_url":"https://github.com/mauron85","followers_url":"https://api.github.com/users/mauron85/followers","following_url":"https://api.github.com/users/mauron85/following{/other_user}","gists_url":"https://api.github.com/users/mauron85/gists{/gist_id}","starred_url":"https://api.github.com/users/mauron85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauron85/subscriptions","organizations_url":"https://api.github.com/users/mauron85/orgs","repos_url":"https://api.github.com/users/mauron85/repos","events_url":"https://api.github.com/users/mauron85/events{/privacy}","received_events_url":"https://api.github.com/users/mauron85/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T18:42:33Z","updated_at":"2018-11-04T18:42:33Z","author_association":"OWNER","body":"Action needed in ionic side. Closing, as there is not much we can do here. "}}
{"actor":{"display_login":"mauron85"}}