mjohan / cordova-plugin-empatica-device

Cordova plugin for Empatica device (android and iOS)
MIT License
4 stars 0 forks source link

Uncaught ReferenceError: Empatica is not defined #4

Open amsainju opened 6 years ago

amsainju commented 6 years ago

I am getting this error, "Uncaught ReferenceError: Empatica is not defined". I have added the plugin in my phonegap app. using the command: C:..phonegapProject>phonegap cordova plugin add <path\cordova-plugin-empatica-device>

next I added a line in config.xml:

And, I tried run it with the sample code (surbscribe to BVP sensor). But, the code does not find Empatica. Could you please help me with this?

mjohan commented 6 years ago

It seems that the plugin hasn't been installed to your phonegap project. Could you run this command and let me know the outputs? $ phonegap local plugin list

amsainju commented 6 years ago

It did not print anything. it opened the phonegap application though.

mjohan commented 6 years ago

could you try to run this command? $ phonegap local plugin add <path\cordova-plugin-empatica-device> then try to run this command again: $ phonegap local plugin list

amsainju commented 6 years ago

I got same result. I am using phonegap on windows.

mjohan commented 6 years ago

To be honest, I have never tested my plugin to any phonegap projects. My empatica device is borrowed for other project so I cannot check it now. What I can say now is that you might need to read more about adding plugin to phonegap project. From the output, I can say that the plugin has not been installed to your project yet.

amsainju commented 6 years ago

Hmm... Thank you for your support.