{"action":"created","issue":{"url":"https://api.github.com/repos/floatinghotpot/cordova-plugin-sms/issues/24","labels_url":"https://api.github.com/repos/floatinghotpot/cordova-plugin-sms/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/floatinghotpot/cordova-plugin-sms/issues/24/comments","events_url":"https://api.github.com/repos/floatinghotpot/cordova-plugin-sms/issues/24/events","html_url":"https://github.com/floatinghotpot/cordova-plugin-sms/issues/24","id":123228629,"number":24,"title":"Uncaught TypeError: Cannot read property 'indexOf' of undefined","user":{"login":"aahedi","id":8935884,"avatar_url":"https://avatars.githubusercontent.com/u/8935884?v=3","gravatar_id":"","url":"https://api.github.com/users/aahedi","html_url":"https://github.com/aahedi","followers_url":"https://api.github.com/users/aahedi/followers","following_url":"https://api.github.com/users/aahedi/following{/other_user}","gists_url":"https://api.github.com/users/aahedi/gists{/gist_id}","starred_url":"https://api.github.com/users/aahedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aahedi/subscriptions","organizations_url":"https://api.github.com/users/aahedi/orgs","repos_url":"https://api.github.com/users/aahedi/repos","events_url":"https://api.github.com/users/aahedi/events{/privacy}","received_events_url":"https://api.github.com/users/aahedi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T08:07:55Z","updated_at":"2015-12-24T09:27:22Z","closed_at":null,"body":"```javascript\r\nvar textmsg = pesanku;\r\n\t\t\t\r\n        \tif(sendto.indexOf(\";\") >=0) {\r\n        \t\tsendto = sendto.split(\";\");\r\n        \t\tfor(i in sendto) {\r\n        \t\t\tsendto[i] = sendto[i].trim();\r\n        \t\t}\r\n        \t}\r\n        \tif(SMS) SMS.sendSMS(sendto, textmsg, function(){}, function(str){alert(str);});\r\n```\r\n\r\n\r\nCannot read property 'indexOf' of undefined"},"comment":{"url":"https://api.github.com/repos/floatinghotpot/cordova-plugin-sms/issues/comments/167076794","html_url":"https://github.com/floatinghotpot/cordova-plugin-sms/issues/24#issuecomment-167076794","issue_url":"https://api.github.com/repos/floatinghotpot/cordova-plugin-sms/issues/24","id":167076794,"user":{"login":"aahedi","id":8935884,"avatar_url":"https://avatars.githubusercontent.com/u/8935884?v=3","gravatar_id":"","url":"https://api.github.com/users/aahedi","html_url":"https://github.com/aahedi","followers_url":"https://api.github.com/users/aahedi/followers","following_url":"https://api.github.com/users/aahedi/following{/other_user}","gists_url":"https://api.github.com/users/aahedi/gists{/gist_id}","starred_url":"https://api.github.com/users/aahedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aahedi/subscriptions","organizations_url":"https://api.github.com/users/aahedi/orgs","repos_url":"https://api.github.com/users/aahedi/repos","events_url":"https://api.github.com/users/aahedi/events{/privacy}","received_events_url":"https://api.github.com/users/aahedi/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T09:27:22Z","updated_at":"2015-12-24T09:27:22Z","body":"Yes, the problem is in my code. I forgot to define a variable input sendto. I have solved the problem. thanks."}}