{"action":"closed","issue":{"url":"https://api.github.com/repos/Pushwoosh/phonegap-cordova-push-notifications/issues/12","labels_url":"https://api.github.com/repos/Pushwoosh/phonegap-cordova-push-notifications/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Pushwoosh/phonegap-cordova-push-notifications/issues/12/comments","events_url":"https://api.github.com/repos/Pushwoosh/phonegap-cordova-push-notifications/issues/12/events","html_url":"https://github.com/Pushwoosh/phonegap-cordova-push-notifications/issues/12","id":7770464,"number":12,"title":"pushwoosh unrecognized selector sent to instance","user":{"login":"Lysandra","id":2169730,"avatar_url":"https://avatars.githubusercontent.com/u/2169730?v=3","gravatar_id":"","url":"https://api.github.com/users/Lysandra","html_url":"https://github.com/Lysandra","followers_url":"https://api.github.com/users/Lysandra/followers","following_url":"https://api.github.com/users/Lysandra/following{/other_user}","gists_url":"https://api.github.com/users/Lysandra/gists{/gist_id}","starred_url":"https://api.github.com/users/Lysandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lysandra/subscriptions","organizations_url":"https://api.github.com/users/Lysandra/orgs","repos_url":"https://api.github.com/users/Lysandra/repos","events_url":"https://api.github.com/users/Lysandra/events{/privacy}","received_events_url":"https://api.github.com/users/Lysandra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2012-10-22T15:52:43Z","updated_at":"2016-01-26T17:12:43Z","closed_at":"2016-01-26T17:12:43Z","body":"I am trying out pushwoosh and tried unregistering an iOS device on the remote api and this error came up:\r\n\r\n-[__NSDictionaryI cdvjk_JSONString]: unrecognized selector sent to instance\r\n*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-    [__NSDictionaryI cdvjk_JSONString]: unrecognized selector sent to instance\r\n*** First throw call stack:\r\nlibc++abi.dylib: terminate called throwing an exception\r\n Sending request: {\"request\":{\"hwid\":\"my_hwid\", \"application\":\"my_app_id\"}}\r\nTo urL https://cp.pushwoosh.com/json/1.3/pushStat\r\n(lldb) \r\nI then realized that the unregister method is implemented only for androids and not iOS devices so that request was not being used by the pushwoosh plugins in the plugins folder.\r\n\r\nI removed the code from my index.js and pushnotifications.js files but still the error came up every time I tried to launch the app after accepting a push notification.\r\n\r\nI then removed this code from the remote api:\r\n\r\n new JObject(\r\n             new JProperty(\"custom\", \"json data\"))),\r\n             new JProperty(\"link\", \"http://pushwoosh.com/\")\r\nwith the hope that the seemingly custom data wil not be sent to pushwoosh.\r\n\r\nStill the error appears. I know that the problem is that an unhanded request is being made every time but the problem is that the code does not exist.\r\n\r\nCould I have possibly edited some method signatures and these signatures are being used each and every time I try to accept a push notification?\r\n\r\nOr is it that Xcode performs auto-complete?\r\n\r\nI would need someone who is familiar with pushwoosh to help me out here."}}