{"action":"closed","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/272","repository_url":"https://api.github.com/repos/EddyVerbruggen/Calendar-PhoneGap-Plugin","labels_url":"https://api.github.com/repos/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/272/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/272/events","html_url":"https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/272","id":136002603,"number":272,"title":"Class not found: add JSON object in plugins/android.json","user":{"login":"sphaso","id":4958220,"avatar_url":"https://avatars.githubusercontent.com/u/4958220?v=3","gravatar_id":"","url":"https://api.github.com/users/sphaso","html_url":"https://github.com/sphaso","followers_url":"https://api.github.com/users/sphaso/followers","following_url":"https://api.github.com/users/sphaso/following{/other_user}","gists_url":"https://api.github.com/users/sphaso/gists{/gist_id}","starred_url":"https://api.github.com/users/sphaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphaso/subscriptions","organizations_url":"https://api.github.com/users/sphaso/orgs","repos_url":"https://api.github.com/users/sphaso/repos","events_url":"https://api.github.com/users/sphaso/events{/privacy}","received_events_url":"https://api.github.com/users/sphaso/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-24T09:21:52Z","updated_at":"2016-02-26T11:52:59Z","closed_at":"2016-02-26T11:52:59Z","body":"I've been fighting against a \"Class not found\" error in my Ionic1 app for a couple of days. This is what I've found and I think others would find this helpful as well:\r\n\r\n- unlike what's in the demo, the plugin root object is at ```window.plugins.calendar```\r\n- this is my \"config_munge\" object in plugins/android.json. The \"Calendar\" feature was missing and that's why I was getting \"Class not found\" error on each call.\r\n\r\n```\r\n    \"config_munge\": {\r\n        \"files\": {\r\n            \"res/xml/config.xml\": {\r\n                \"parents\": {\r\n                    \"/*\": [\r\n                        {\r\n                            \"xml\": \"<feature name=\\\"Keyboard\\\"><param name=\\\"android-package\\\" value=\\\"com.ionic.keyboard.IonicKeyboard\\\" /><param name=\\\"onload\\\" value=\\\"true\\\" /></feature>\",\r\n                            \"count\": 1\r\n                        },\r\n                        {\r\n                            \"xml\": \"<feature name=\\\"Calendar\\\"><param name=\\\"android-package\\\" value=\\\"nl.xservices.plugins.Calendar\\\" /><param name=\\\"onload\\\" value=\\\"true\\\" /></feature>\",\r\n                            \"count\": 1\r\n                        }\r\n                    ]\r\n                }\r\n            }\r\n        }\r\n    },\r\n```\r\n\r\nIonic info:\r\n```\r\nCordova CLI: 4.2.0\r\nGulp version:  CLI version 3.9.1\r\nGulp local:   Local version 3.9.1\r\nIonic Version: 1.2.4\r\nIonic CLI Version: 2.0.0-beta.17\r\nIonic App Lib Version: 2.0.0-beta.8\r\nOS: Windows 7 SP1\r\nNode Version: v4.1.2\r\n```"}}