{"action":"created","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/cordova-plugin-actionsheet/issues/17","labels_url":"https://api.github.com/repos/EddyVerbruggen/cordova-plugin-actionsheet/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/cordova-plugin-actionsheet/issues/17/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/cordova-plugin-actionsheet/issues/17/events","html_url":"https://github.com/EddyVerbruggen/cordova-plugin-actionsheet/issues/17","id":61143274,"number":17,"title":"\"1.1.4\" version have some question want to ask","user":{"login":"bau720123","id":5110085,"avatar_url":"https://avatars.githubusercontent.com/u/5110085?v=3","gravatar_id":"","url":"https://api.github.com/users/bau720123","html_url":"https://github.com/bau720123","followers_url":"https://api.github.com/users/bau720123/followers","following_url":"https://api.github.com/users/bau720123/following{/other_user}","gists_url":"https://api.github.com/users/bau720123/gists{/gist_id}","starred_url":"https://api.github.com/users/bau720123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bau720123/subscriptions","organizations_url":"https://api.github.com/users/bau720123/orgs","repos_url":"https://api.github.com/users/bau720123/repos","events_url":"https://api.github.com/users/bau720123/events{/privacy}","received_events_url":"https://api.github.com/users/bau720123/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-13T17:15:01Z","updated_at":"2015-06-27T16:39:14Z","closed_at":"2015-06-27T16:39:14Z","body":"I am using PGB 3.7 with 1.1.4 version plugin\r\nthese are my sample code\r\n```\r\n<script type=\"text/javascript\">\r\nfunction checkActionSheet()\r\n{\r\n var options = \r\n {\r\n 'androidTheme': 1, //the default is 1，1：THEME_TRADITIONAL、2：THEME_HOLO_DARK、3：THEME_HOLO_LIGHT、4：THEME_DEVICE_DEFAULT_DARK、5：THEME_DEVICE_DEFAULT_LIGHT\r\n 'title': 'how?',\r\n 'buttonLabels': ['Facebook', 'Twitter'],\r\n 'androidEnableCancelButton' : true,\r\n 'winphoneEnableCancelButton' : true,\r\n 'addCancelButtonWithLabel': 'cancel',\r\n 'addDestructiveButtonWithLabel' : 'delete'\r\n };\r\nwindow.plugins.actionsheet.show(options, callback);\r\nsetTimeout(function() { window.plugins.actionsheet.hide({}, onSuccess, onError); }, 3000);\r\n};\r\n\r\nfunction callback(buttonIndex) \r\n{\r\nalert(\"buttonIndex：\" + buttonIndex, null);\r\n}\r\n\r\nfunction onSuccess()\r\n{\r\nalert(\"success\");\r\n}\r\n\r\nfunction onError()\r\n{\r\nalert(\"fail\");\r\n}\r\n</script>\r\n```\r\n\r\naccording to the latest document\r\nhttp://plugins.cordova.io/#/package/nl.x-services.plugins.actionsheet\r\n\r\n[question 1]\r\nit said\r\n```\r\n'androidTheme': window.plugins.actionsheet.ANDROID_THEMES.THEME_HOLO_LIGHT, // default is THEME_TRADITIONAL\r\n```\r\nbut in fact，it should be modify to this\r\n```\r\n 'androidTheme': 1, //the default is 1，1：THEME_TRADITIONAL、2：THEME_HOLO_DARK、3：THEME_HOLO_LIGHT、4：THEME_DEVICE_DEFAULT_DARK、5：THEME_DEVICE_DEFAULT_LIGHT\r\n```\r\n\r\n[question 2]\r\nwhen I trigger \"checkActionSheet\" function\r\nit will also trigger ```window.plugins.actionsheet.hide({}, onSuccess, onError);``` after three seconds\r\nwell...\r\nbut no mater which platform is\r\nthe \"onSuccess\" or \"onError\" will never trigger\r\n\r\n[question 3]\r\nafter three seconds passed...\r\nin Android and winphone，it will trigger \"nothing\"\r\nbut in iOS，it will automatically trigger \"callback\" javascript function and alert buttonIndex is \"-1\"\r\nso...is the iOS's logical correct ?"},"comment":{"url":"https://api.github.com/repos/EddyVerbruggen/cordova-plugin-actionsheet/issues/comments/116098300","html_url":"https://github.com/EddyVerbruggen/cordova-plugin-actionsheet/issues/17#issuecomment-116098300","issue_url":"https://api.github.com/repos/EddyVerbruggen/cordova-plugin-actionsheet/issues/17","id":116098300,"user":{"login":"bau720123","id":5110085,"avatar_url":"https://avatars.githubusercontent.com/u/5110085?v=3","gravatar_id":"","url":"https://api.github.com/users/bau720123","html_url":"https://github.com/bau720123","followers_url":"https://api.github.com/users/bau720123/followers","following_url":"https://api.github.com/users/bau720123/following{/other_user}","gists_url":"https://api.github.com/users/bau720123/gists{/gist_id}","starred_url":"https://api.github.com/users/bau720123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bau720123/subscriptions","organizations_url":"https://api.github.com/users/bau720123/orgs","repos_url":"https://api.github.com/users/bau720123/repos","events_url":"https://api.github.com/users/bau720123/events{/privacy}","received_events_url":"https://api.github.com/users/bau720123/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T16:39:13Z","updated_at":"2015-06-27T16:39:13Z","body":"hi @EddyVerbruggen \r\nproblem solved in 1.1.7 version\r\nthanks"}}