{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/9277","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/9277/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/9277/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/9277/events","html_url":"https://github.com/driftyco/ionic/issues/9277","id":190939338,"number":9277,"title":"cordova and plugins not available during development on device iOS/Android","user":{"login":"gabrielmuresan","id":6017306,"avatar_url":"https://avatars.githubusercontent.com/u/6017306?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielmuresan","html_url":"https://github.com/gabrielmuresan","followers_url":"https://api.github.com/users/gabrielmuresan/followers","following_url":"https://api.github.com/users/gabrielmuresan/following{/other_user}","gists_url":"https://api.github.com/users/gabrielmuresan/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielmuresan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielmuresan/subscriptions","organizations_url":"https://api.github.com/users/gabrielmuresan/orgs","repos_url":"https://api.github.com/users/gabrielmuresan/repos","events_url":"https://api.github.com/users/gabrielmuresan/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielmuresan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-22T08:50:05Z","updated_at":"2016-11-22T08:50:05Z","closed_at":null,"body":"**Ionic version:**  (check one with \"x\")\r\n[ ] **1.x**\r\n[X] **2.x**\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n[X] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/\r\n\r\n**Current behavior:**\r\nI can't use ANY cordova plugins during development anymore. (no splash screen, no sqlite, nothing)\r\n**Expected behavior:**\r\nBefore updating everything worked as expected (i was working with rc2)\r\n\r\n**Steps to reproduce:**\r\n`ionic start test-app --v2`\r\n`cd test-app`\r\n`ionic plugin add cordova-sqlite-storage`\r\n\r\n>> following tutorial: http://ionicframework.com/docs/v2/native/sqlite/\r\nopen src/app/app.compontent.ts\r\n`import { SQLite } from 'ionic-native';`\r\nmodify platform.ready()\r\n```\r\nplatform.ready().then(() => {\r\n      let db = new SQLite();\r\n      db.openDatabase({\r\n        name: 'data.db',\r\n        location: 'default' // the location field is required\r\n      }).then(() => {\r\n        db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => {\r\n\r\n        }, (err) => {\r\n          console.error('Unable to execute sql: ', err);\r\n        });\r\n      }, (err) => {\r\n        console.error('Unable to open database: ', err);\r\n      });\r\n      // Okay, so the platform is ready and our plugins are available.\r\n      // Here you can do any higher level native things you might need.\r\n      StatusBar.styleDefault();\r\n      Splashscreen.hide();\r\n    });\r\n```\r\n\r\n`ionic emulate ios -lc --target=\"iPhone-6\"`\r\n\r\nERROR:\r\n`ReferenceError: Can't find variable: sqlitePlugin`\r\n\r\ncordova.js content ON DEVICE using safari inspector\r\n`// mock cordova file during development`\r\n\r\n```\r\nYour system information:\r\n\r\nCordova CLI: 6.4.0 \r\nIonic Framework Version: 2.0.0-rc.3\r\nIonic CLI Version: 2.1.12\r\nIonic App Lib Version: 2.1.7\r\nIonic App Scripts Version: 0.0.45\r\nios-deploy version: 1.9.0 \r\nios-sim version: 5.0.11 \r\nOS: macOS Sierra\r\nNode Version: v6.2.2\r\nXcode version: Xcode 8.1 Build version 8B62\r\n```\r\n\r\nError is the same on android.\r\n\r\nWhat can I do? this is driving me crazy.\r\n\r\n"}}
{"actor":{"display_login":"gabrielmuresan"}}