{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-native/issues/2428","repository_url":"https://api.github.com/repos/ionic-team/ionic-native","labels_url":"https://api.github.com/repos/ionic-team/ionic-native/issues/2428/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-native/issues/2428/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-native/issues/2428/events","html_url":"https://github.com/ionic-team/ionic-native/issues/2428","id":310723959,"node_id":"MDU6SXNzdWUzMTA3MjM5NTk=","number":2428,"title":"CallNumber's `.isCallSupported()` throws \"plugin_not_installed\" error, but the functionality still works","user":{"login":"uzbekjon","id":47445,"node_id":"MDQ6VXNlcjQ3NDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/47445?v=4","gravatar_id":"","url":"https://api.github.com/users/uzbekjon","html_url":"https://github.com/uzbekjon","followers_url":"https://api.github.com/users/uzbekjon/followers","following_url":"https://api.github.com/users/uzbekjon/following{/other_user}","gists_url":"https://api.github.com/users/uzbekjon/gists{/gist_id}","starred_url":"https://api.github.com/users/uzbekjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzbekjon/subscriptions","organizations_url":"https://api.github.com/users/uzbekjon/orgs","repos_url":"https://api.github.com/users/uzbekjon/repos","events_url":"https://api.github.com/users/uzbekjon/events{/privacy}","received_events_url":"https://api.github.com/users/uzbekjon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"danielsogl","id":15234844,"node_id":"MDQ6VXNlcjE1MjM0ODQ0","avatar_url":"https://avatars2.githubusercontent.com/u/15234844?v=4","gravatar_id":"","url":"https://api.github.com/users/danielsogl","html_url":"https://github.com/danielsogl","followers_url":"https://api.github.com/users/danielsogl/followers","following_url":"https://api.github.com/users/danielsogl/following{/other_user}","gists_url":"https://api.github.com/users/danielsogl/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsogl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsogl/subscriptions","organizations_url":"https://api.github.com/users/danielsogl/orgs","repos_url":"https://api.github.com/users/danielsogl/repos","events_url":"https://api.github.com/users/danielsogl/events{/privacy}","received_events_url":"https://api.github.com/users/danielsogl/received_events","type":"User","site_admin":false},"assignees":[{"login":"danielsogl","id":15234844,"node_id":"MDQ6VXNlcjE1MjM0ODQ0","avatar_url":"https://avatars2.githubusercontent.com/u/15234844?v=4","gravatar_id":"","url":"https://api.github.com/users/danielsogl","html_url":"https://github.com/danielsogl","followers_url":"https://api.github.com/users/danielsogl/followers","following_url":"https://api.github.com/users/danielsogl/following{/other_user}","gists_url":"https://api.github.com/users/danielsogl/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsogl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsogl/subscriptions","organizations_url":"https://api.github.com/users/danielsogl/orgs","repos_url":"https://api.github.com/users/danielsogl/repos","events_url":"https://api.github.com/users/danielsogl/events{/privacy}","received_events_url":"https://api.github.com/users/danielsogl/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-04-03T07:27:54Z","updated_at":"2018-09-24T10:49:40Z","closed_at":"2018-04-14T14:45:03Z","author_association":"CONTRIBUTOR","body":"**I'm submitting a ...**\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request\r\n\r\n**Current behavior:**\r\n<!-- Describe how the bug manifests. -->\r\n[Call Number](https://ionicframework.com/docs/native/call-number/) plugin's `.isCallSupported()` method throws \"_plugin_not_installed_\" error. Even though the plugin is installed AND work as expected.\r\n\r\n**Expected behavior:**\r\n<!-- Describe what the behavior would be without the bug. -->\r\nThe promise returned by the method should resolve to true on devises that support the functionality.\r\n\r\n**Steps to reproduce:**\r\n<!-- If you are able to illustrate the bug or feature request with an example, please provide steps to reproduce. -->\r\nInstall the plugin as usual:\r\n```\r\n$ ionic cordova plugin add call-number\r\n$ npm install --save @ionic-native/call-number\r\n```\r\nAdd the module to providers list:\r\n\r\n```typescript\r\nimport { CallNumber } from '@ionic-native/call-number';\r\n\r\n...\r\n\r\n@NgModule({\r\n  ...\r\n\r\n  providers: [\r\n    ...\r\n    CallNumber\r\n    ...\r\n  ]\r\n  ...\r\n})\r\nexport class AppModule { }\r\n```\r\n\r\n**Related code:**\r\n\r\n```typescript\r\nimport { Component } from '@angular/core';\r\nimport { CallNumber } from \"@ionic-native/call-number\";\r\n\r\n@Component({\r\n  selector: 'page-home',\r\n  template: `\r\n    {{isSupported | json}}\r\n    <button ion-button (click)=\"callNumber()\">CallNumber</button>\r\n  `\r\n})\r\nexport class HomePage {\r\n  isSupported = false;\r\n\r\n  constructor(public phone: CallNumber) {\r\n    this.phone.isCallSupported()\r\n      .then(support => this.isSupported = support)\r\n      .catch(err => this.isSupported = err);\r\n  }\r\n\r\n  callNumber(){\r\n    this.phone.callNumber(\"123456789\", true)\r\n      .then(res => this.result = res)\r\n      .catch(err => this.result = err);\r\n  }\r\n}\r\n```\r\n\r\n**Other information:**\r\n<!-- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc. -->\r\n\r\n**Ionic info:**\r\n\r\n```\r\ncli packages: (/Users/uzbekjon/.nvm/versions/node/v8.9.4/lib/node_modules)\r\n\r\n    @ionic/cli-utils  : 1.19.2\r\n    ionic (Ionic CLI) : 3.20.0\r\n\r\nglobal packages:\r\n\r\n    cordova (Cordova CLI) : 8.0.0 \r\n\r\nlocal packages:\r\n\r\n    @ionic/app-scripts : 3.1.8\r\n    Cordova Platforms  : android 7.0.0\r\n    Ionic Framework    : ionic-angular 3.9.2\r\n\r\nSystem:\r\n\r\n    Android SDK Tools : 26.1.1\r\n    Node              : v8.9.4\r\n    npm               : 5.7.1 \r\n    OS                : macOS High Sierra\r\n    Xcode             : Xcode 9.2 Build version 9C40b \r\n\r\nEnvironment Variables:\r\n\r\n    ANDROID_HOME : /Users/uzbekjon/Library/Android/sdk\r\n\r\nMisc:\r\n\r\n    backend : pro\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic-native/issues/comments/423936552","html_url":"https://github.com/ionic-team/ionic-native/issues/2428#issuecomment-423936552","issue_url":"https://api.github.com/repos/ionic-team/ionic-native/issues/2428","id":423936552,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzkzNjU1Mg==","user":{"login":"ManigandanRaamanathan","id":22089729,"node_id":"MDQ6VXNlcjIyMDg5NzI5","avatar_url":"https://avatars1.githubusercontent.com/u/22089729?v=4","gravatar_id":"","url":"https://api.github.com/users/ManigandanRaamanathan","html_url":"https://github.com/ManigandanRaamanathan","followers_url":"https://api.github.com/users/ManigandanRaamanathan/followers","following_url":"https://api.github.com/users/ManigandanRaamanathan/following{/other_user}","gists_url":"https://api.github.com/users/ManigandanRaamanathan/gists{/gist_id}","starred_url":"https://api.github.com/users/ManigandanRaamanathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManigandanRaamanathan/subscriptions","organizations_url":"https://api.github.com/users/ManigandanRaamanathan/orgs","repos_url":"https://api.github.com/users/ManigandanRaamanathan/repos","events_url":"https://api.github.com/users/ManigandanRaamanathan/events{/privacy}","received_events_url":"https://api.github.com/users/ManigandanRaamanathan/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T10:49:40Z","updated_at":"2018-09-24T10:49:40Z","author_association":"NONE","body":"@ng22792  my solution for your problem is that try remove your ionic platform based on ( https://ionicframework.com/docs/cli/cordova/platform/ ) and then add the platform back. This will download all the missed out plugin in platform."}}
{"actor":{"display_login":"ManigandanRaamanathan"}}