{"action":"created","issue":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/538","labels_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/538/comments","events_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/538/events","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/538","id":73135256,"number":538,"title":"notification.data is passed as string","user":{"login":"hyyan","id":4313420,"avatar_url":"https://avatars.githubusercontent.com/u/4313420?v=3","gravatar_id":"","url":"https://api.github.com/users/hyyan","html_url":"https://github.com/hyyan","followers_url":"https://api.github.com/users/hyyan/followers","following_url":"https://api.github.com/users/hyyan/following{/other_user}","gists_url":"https://api.github.com/users/hyyan/gists{/gist_id}","starred_url":"https://api.github.com/users/hyyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyyan/subscriptions","organizations_url":"https://api.github.com/users/hyyan/orgs","repos_url":"https://api.github.com/users/hyyan/repos","events_url":"https://api.github.com/users/hyyan/events{/privacy}","received_events_url":"https://api.github.com/users/hyyan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-04T21:40:02Z","updated_at":"2015-12-08T11:15:02Z","closed_at":null,"body":"Hey , thanks for the great work\r\n\r\nI have been trying to pass data to clicked notification , put after some digging I found that the `data` is passed as string . which is really wired .\r\n\r\nlogging the notification object gave me the following result :\r\n\r\n```json\r\n{\"icon\":\"http://mysite.com/photot.jpg\",\"data\":\"{\\\"type\\\":\\\"post\\\",\\\"id\\\":24}\",\"\r\nat\":1430774835,\"every\":\"minute\",\"id\":\"1\",\"title\":\"testing\",\"smallIcon\":\"res://ic_popup_reminder\",\"ongoing\":false,\"led\":\"FFFFFF\",\"sou\r\nnd\":\"res://platform_default\",\"badge\":0}\r\n```\r\n\r\n\r\nAnd here is a snippet from my code : \r\n\r\n```js\r\n cordova.plugins.notification.local.schedule({\r\n            id : 1,\r\n            every: \"minute\", // \"minute\", \"hour\", \"week\", \"month\", \"year\"\r\n            title: 'testing',\r\n            icon : 'url'\r\n            data : {\r\n              type: 'post',\r\n              id: ID\r\n            }\r\n});\r\n\r\ncordova.plugins.notification.local.on(\"click\", function (notification) {\r\n          if(notification.id != 1){\r\n            return ;\r\n          }\r\n          $log.debug(JSON.stringify(notification));\r\n});\r\n```\r\nAny idea ?  thanks in advance"},"comment":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/comments/162852866","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/538#issuecomment-162852866","issue_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/538","id":162852866,"user":{"login":"snese","id":4168002,"avatar_url":"https://avatars.githubusercontent.com/u/4168002?v=3","gravatar_id":"","url":"https://api.github.com/users/snese","html_url":"https://github.com/snese","followers_url":"https://api.github.com/users/snese/followers","following_url":"https://api.github.com/users/snese/following{/other_user}","gists_url":"https://api.github.com/users/snese/gists{/gist_id}","starred_url":"https://api.github.com/users/snese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snese/subscriptions","organizations_url":"https://api.github.com/users/snese/orgs","repos_url":"https://api.github.com/users/snese/repos","events_url":"https://api.github.com/users/snese/events{/privacy}","received_events_url":"https://api.github.com/users/snese/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T11:15:02Z","updated_at":"2015-12-08T11:15:02Z","body":"Hi All,\r\n\r\nI have same issue in this test environment\r\n\r\n - Cordova: 5.4\r\n - Cordova Platform: android 4.1.1, ios 3.9.1\r\n - Plugin version: 0.8.1"}}