{"action":"closed","issue":{"url":"https://api.github.com/repos/OneSignal/OneSignal-Android-SDK/issues/458","repository_url":"https://api.github.com/repos/OneSignal/OneSignal-Android-SDK","labels_url":"https://api.github.com/repos/OneSignal/OneSignal-Android-SDK/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/OneSignal/OneSignal-Android-SDK/issues/458/comments","events_url":"https://api.github.com/repos/OneSignal/OneSignal-Android-SDK/issues/458/events","html_url":"https://github.com/OneSignal/OneSignal-Android-SDK/issues/458","id":301989476,"number":458,"title":"OneSignal is starting my application class after closing my app","user":{"login":"Reza-Soltani","id":17314699,"avatar_url":"https://avatars1.githubusercontent.com/u/17314699?v=4","gravatar_id":"","url":"https://api.github.com/users/Reza-Soltani","html_url":"https://github.com/Reza-Soltani","followers_url":"https://api.github.com/users/Reza-Soltani/followers","following_url":"https://api.github.com/users/Reza-Soltani/following{/other_user}","gists_url":"https://api.github.com/users/Reza-Soltani/gists{/gist_id}","starred_url":"https://api.github.com/users/Reza-Soltani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reza-Soltani/subscriptions","organizations_url":"https://api.github.com/users/Reza-Soltani/orgs","repos_url":"https://api.github.com/users/Reza-Soltani/repos","events_url":"https://api.github.com/users/Reza-Soltani/events{/privacy}","received_events_url":"https://api.github.com/users/Reza-Soltani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-03T11:04:22Z","updated_at":"2018-03-22T23:32:34Z","closed_at":"2018-03-22T23:32:34Z","author_association":"NONE","body":"Hi,\r\n\r\nSeems that after closing my app, OneSignal is creating my app's application class for SyncJobService. I know this is not a bug, but I am initializing a lot's of things in onCreate method of my application class.\r\n\r\nLeakcanary has a very usefull method, named isInAnaluzerProcess that determines: \"is the reason of calling onCreate leakcanary or not\"?\r\n\r\nYou may see it's usage here:\r\n```java\r\n  @Override public void onCreate() {\r\n    super.onCreate();\r\n    if (LeakCanary.isInAnalyzerProcess(this)) {\r\n      // This process is dedicated to LeakCanary for heap analysis.\r\n      // You should not init your app in this process.\r\n      return;\r\n    }\r\n```\r\n\r\nCan you provide us a method like this, to prevent initializing the app in OneSignal background process? \r\n\r\n\r\nThanks"}}
{"actor":{"display_login":"jkasten2"}}