{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2292","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2292/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2292/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2292/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/2292","id":309968105,"number":2292,"title":"Android crash with java.lang.SecurityException","user":{"login":"pitAlex","id":17630336,"avatar_url":"https://avatars1.githubusercontent.com/u/17630336?v=4","gravatar_id":"","url":"https://api.github.com/users/pitAlex","html_url":"https://github.com/pitAlex","followers_url":"https://api.github.com/users/pitAlex/followers","following_url":"https://api.github.com/users/pitAlex/following{/other_user}","gists_url":"https://api.github.com/users/pitAlex/gists{/gist_id}","starred_url":"https://api.github.com/users/pitAlex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitAlex/subscriptions","organizations_url":"https://api.github.com/users/pitAlex/orgs","repos_url":"https://api.github.com/users/pitAlex/repos","events_url":"https://api.github.com/users/pitAlex/events{/privacy}","received_events_url":"https://api.github.com/users/pitAlex/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-30T03:47:44Z","updated_at":"2018-03-30T20:34:53Z","closed_at":"2018-03-30T12:15:13Z","author_association":"NONE","body":"Hi,\r\nWe are using the latest version of the push plugin and we noticed we had one crash reported in the \r\nplay console which looks like this:\r\n\r\n```\r\njava.lang.RuntimeException: \r\n  at android.app.ActivityThread.performPauseActivityIfNeeded (ActivityThread.java:3897)\r\n  at android.app.ActivityThread.performPauseActivity (ActivityThread.java:3856)\r\n  at android.app.ActivityThread.performPauseActivity (ActivityThread.java:3830)\r\n  at android.app.ActivityThread.handlePauseActivity (ActivityThread.java:3804)\r\n  at android.app.ActivityThread.-wrap16 (ActivityThread.java)\r\n  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1601)\r\n  at android.os.Handler.dispatchMessage (Handler.java:110)\r\n  at android.os.Looper.loop (Looper.java:203)\r\n  at android.app.ActivityThread.main (ActivityThread.java:6309)\r\n  at java.lang.reflect.Method.invoke (Native Method)\r\n  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1063)\r\n  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:924)\r\n\r\nCaused by: java.lang.SecurityException: \r\n  at android.os.Parcel.readException (Parcel.java:1683)\r\n  at android.os.Parcel.readException (Parcel.java:1636)\r\n  at android.app.INotificationManager$Stub$Proxy.cancelAllNotifications (INotificationManager.java:794)\r\n  at android.app.NotificationManager.cancelAll (NotificationManager.java:374)\r\n\r\n  at com.adobe.phonegap.push.PushPlugin.clearAllNotifications (PushPlugin.java:489)\r\n  at com.adobe.phonegap.push.PushPlugin.onPause (PushPlugin.java:469)\r\n\r\n  at org.apache.cordova.PluginManager.onPause (PluginManager.java:211)\r\n  at org.apache.cordova.CordovaWebViewImpl.handlePause (CordovaWebViewImpl.java:433)\r\n  at org.apache.cordova.CordovaActivity.onPause (CordovaActivity.java:245)\r\n  at android.app.Activity.performPause (Activity.java:6873)\r\n  at android.app.Instrumentation.callActivityOnPause (Instrumentation.java:1322)\r\n  at android.app.ActivityThread.performPauseActivityIfNeeded (ActivityThread.java:3879)\r\n```\r\nThis is for [TCT (Alcatel) 5049W (Mickey6TTMO)](https://www.handsetdetection.com/device-detection-database/devices/alcatel/5049w/) with an Android 7.0.  There seems to be some security violated when the app is paused and notifications are being cleared.\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/377616830","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/2292#issuecomment-377616830","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2292","id":377616830,"user":{"login":"pitAlex","id":17630336,"avatar_url":"https://avatars1.githubusercontent.com/u/17630336?v=4","gravatar_id":"","url":"https://api.github.com/users/pitAlex","html_url":"https://github.com/pitAlex","followers_url":"https://api.github.com/users/pitAlex/followers","following_url":"https://api.github.com/users/pitAlex/following{/other_user}","gists_url":"https://api.github.com/users/pitAlex/gists{/gist_id}","starred_url":"https://api.github.com/users/pitAlex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitAlex/subscriptions","organizations_url":"https://api.github.com/users/pitAlex/orgs","repos_url":"https://api.github.com/users/pitAlex/repos","events_url":"https://api.github.com/users/pitAlex/events{/privacy}","received_events_url":"https://api.github.com/users/pitAlex/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T20:34:53Z","updated_at":"2018-03-30T20:34:53Z","author_association":"NONE","body":"Excuse me?? Are you reading what I posted or just decided to come up with the \"issue submission guidelines\"  shit because you don't have any idea whats going on here?\r\n\r\nThis is the live app (crash reported in the play console )  - so no way to replicate, no way to know what the behavior is. The stack-trace is all there is.\r\n\r\nNow instead of being a jerk you could've at least provide info on what the code does there, what api is it accessing and such.\r\nI can't believe you would even try an pull that with me when there are other issues reported which don't follow the template either."}}
{"actor":{"display_login":"pitAlex"}}