{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/684","repository_url":"https://api.github.com/repos/phonegap/phonegap-cli","labels_url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/684/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/684/events","html_url":"https://github.com/phonegap/phonegap-cli/issues/684","id":211365052,"number":684,"title":"Can't add plugins","user":{"login":"ismd","id":765959,"avatar_url":"https://avatars2.githubusercontent.com/u/765959?v=3","gravatar_id":"","url":"https://api.github.com/users/ismd","html_url":"https://github.com/ismd","followers_url":"https://api.github.com/users/ismd/followers","following_url":"https://api.github.com/users/ismd/following{/other_user}","gists_url":"https://api.github.com/users/ismd/gists{/gist_id}","starred_url":"https://api.github.com/users/ismd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismd/subscriptions","organizations_url":"https://api.github.com/users/ismd/orgs","repos_url":"https://api.github.com/users/ismd/repos","events_url":"https://api.github.com/users/ismd/events{/privacy}","received_events_url":"https://api.github.com/users/ismd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-02T11:33:20Z","updated_at":"2017-03-02T18:48:42Z","closed_at":null,"body":"### PhoneGap CLI, node & npm versions\r\nPhoneGap 6.4.4\r\nnode 7.7.1\r\nnpm 4.3.0\r\n### Expected Behaviour\r\ncordova.plugins object contains added plugins on iOS and Android platform\r\n### Actual Behaviour\r\ncordova.plugins object contains installed plugins only in browser\r\n### Steps to Reproduce \r\nSystem: up-to-dated Arch Linux (also tried on OS X)\r\n```\r\npacman -S phonegap\r\nmkdir test && cd test\r\nphonegap create .\r\nphonegap platform add ios android browser\r\n# I want to use cordova-open plugin for example\r\nphonegap plugin add cordova-open\r\n# Adding alert(JSON.stringify(cordova.plugins)); to index.js in deviceready event handler.\r\nphonegap serve\r\n```\r\n[cordova-open](https://www.npmjs.com/package/cordova-open) plugin should adds **cordova.plugins.disusered** property but it doesn't. The same trouble with other plugins.\r\nOpening PhoneGap Developer App on iPhone or Android alerts object that contains only one plugin \"barcodeScanner\". I don't know why it's here, I didn't add it.\r\nOpening app in browser alerts object that contains `disusered' property. It's right except this object is empty.\r\n#### Sample Code that illustrates the problem\r\nalert(JSON.stringify(cordova.plugins));\r\n#### Error messages\r\nNo messages"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/comments/283742851","html_url":"https://github.com/phonegap/phonegap-cli/issues/684#issuecomment-283742851","issue_url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/684","id":283742851,"user":{"login":"surajpindoria","id":6467569,"avatar_url":"https://avatars1.githubusercontent.com/u/6467569?v=3","gravatar_id":"","url":"https://api.github.com/users/surajpindoria","html_url":"https://github.com/surajpindoria","followers_url":"https://api.github.com/users/surajpindoria/followers","following_url":"https://api.github.com/users/surajpindoria/following{/other_user}","gists_url":"https://api.github.com/users/surajpindoria/gists{/gist_id}","starred_url":"https://api.github.com/users/surajpindoria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajpindoria/subscriptions","organizations_url":"https://api.github.com/users/surajpindoria/orgs","repos_url":"https://api.github.com/users/surajpindoria/repos","events_url":"https://api.github.com/users/surajpindoria/events{/privacy}","received_events_url":"https://api.github.com/users/surajpindoria/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T18:48:42Z","updated_at":"2017-03-02T18:48:42Z","body":"Hi @ismd,\r\n\r\nThe reason you are seeing this is because the developer app does not include the `cordova-open` plugin. We only include the core cordova plugins and a few others. If you were to compile and install the app to a device it should work as expected.\r\n\r\nIf you would like to continue using the developer app, you will need to create a custom build that includes this plugin. [Here](https://github.com/phonegap/phonegap-app-developer#adding-custom-plugins) are the instructions for creating a custom build."}}
{"actor":{"display_login":"surajpindoria"}}