{"action":"closed","issue":{"url":"https://api.github.com/repos/one-signal/OneSignal-Cordova-SDK/issues/42","repository_url":"https://api.github.com/repos/one-signal/OneSignal-Cordova-SDK","labels_url":"https://api.github.com/repos/one-signal/OneSignal-Cordova-SDK/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/one-signal/OneSignal-Cordova-SDK/issues/42/comments","events_url":"https://api.github.com/repos/one-signal/OneSignal-Cordova-SDK/issues/42/events","html_url":"https://github.com/one-signal/OneSignal-Cordova-SDK/issues/42","id":143923645,"number":42,"title":"The method removeNotificationOpenedHandler() is undefined for the type OneSignal","user":{"login":"jordan-enev","id":3863376,"avatar_url":"https://avatars.githubusercontent.com/u/3863376?v=3","gravatar_id":"","url":"https://api.github.com/users/jordan-enev","html_url":"https://github.com/jordan-enev","followers_url":"https://api.github.com/users/jordan-enev/followers","following_url":"https://api.github.com/users/jordan-enev/following{/other_user}","gists_url":"https://api.github.com/users/jordan-enev/gists{/gist_id}","starred_url":"https://api.github.com/users/jordan-enev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordan-enev/subscriptions","organizations_url":"https://api.github.com/users/jordan-enev/orgs","repos_url":"https://api.github.com/users/jordan-enev/repos","events_url":"https://api.github.com/users/jordan-enev/events{/privacy}","received_events_url":"https://api.github.com/users/jordan-enev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-28T08:09:52Z","updated_at":"2016-05-19T22:50:27Z","closed_at":"2016-05-19T22:50:27Z","body":"Hello,\r\n\r\nI tried to run a Cordova app with OneSignal plugin, but it fails with the following error at void com.plugin.gcm.OneSignalPush.onDestroy():287:\r\n`The method removeNotificationOpenedHandler() is undefined for the type OneSignal`\r\n\r\nI checked it on Eclipse and Android Studio - and the error exists on the both platforms.\r\n\r\nThe version of OneSignal is:\r\n`onesignal-cordova-plugin 1.11.2 \"OneSignal Push Notifications\"`\r\n\r\nAlso when I comment out the 287 line of code - it works:\r\n`@Override\r\n  public void onDestroy() {\r\n      // OneSignal.removeNotificationOpenedHandler();\r\n}`\r\n\r\nBTW I tried with older version of the plugin (1.10.1) and it works.\r\n"}}
{"actor":{"display_login":"jkasten2"}}