Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

livereload doesn't work with native plugins #1391

Closed
@dayanfcosta

Description

@dayanfcosta

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Short description of the problem:

I'm developing an application that uses SpeechRecognition and TextToSpeech plugins, when I build and install manually in my Android Device, that app works, but when I run "ionic cordova run android -lc --debug" on my prompt it shows me that cordova is not available.

What behavior are you expecting?

I was expected to use native plugins with livereload

Steps to reproduce:

  1. Install plugin like SpeechRecognition
  2. Execute a SpeechRecognition.hasPermission() from your app
  3. Run app using "ionic cordova run android -lc --debug"
cli packages: (C:\Users\dayanfcosta\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 7.0.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v8.9.3
    npm  : 5.6.0
    OS   : Windows 10

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Which @ionic/app-scripts version are you using?

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
The statcktrace is:

[20:48:36]  console.warn: Native: tried calling SpeechRecognition.hasPermission, but Cordova is not available. Make sure 
            to include cordova.js or run in a device/simulator 

My device is a Moto Z2 Play running android 7.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions