Page 4 of 5

Uncaught ReferenceError: ToastPlugin is not defined

Posted: Tue Sep 08, 2015 10:17 pm
by Madi Anas

Hello Anca

Did you have any luck with the sms plugin?

I managed to install it correctly however it is not working for me.


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Jan 20, 2016 4:46 am
by Mark MB

OK, so what was the solution to this problem? I am reading this thread and looks like the final fixed project was sent by the support team to the original poster via private email! Not sure how this is helping the community if the solution is not shared here. I, too, have this problem with Cordova Toast plugin. It does not work even on the real device.


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Jan 20, 2016 5:40 am
by Ronnel Dela Cruz

what's your problem I managed to run it.


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Jan 20, 2016 7:48 pm
by Mark MB

Ok I got it work after I upgraded to v3.0 library. Thanks.


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Apr 06, 2016 10:10 am
by Yatin

I am facing the same issue. I am unable to run any cordova plugin. Followed the directions given in the video as well as the documentation.

Can anyone please tell me what was the solution.


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Apr 06, 2016 11:12 am
by Galyna Abramovych

Hello Yatin,

Could you provide us with more details, screenshots or exact steps to reproduce this problem?
Also, make sure you have used a real device for testing.


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Apr 06, 2016 11:51 am
by Yatin

Hey Galyna,

Thanks for the reply. I was initially trying to install ble plugin to my app but later realized that I'm unable to add any type of plugin. So, I made an app for testing and followed the exact steps mentioned in https://devcenter.appery.io/documenta... to add a Toast plugin.

I might be making a very novice mistake as I'm new to app development. Would be great if you could help me out. Given below are some screenshots.

Image Image Image


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Apr 06, 2016 2:47 pm
by Galyna Abramovych

Hi Yatin,

We have double-checked the issue and everything seems to be working as expected.
Please, could you confirm using external library version 3.0 or higher and, most important, testing on a real device?


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Apr 06, 2016 3:02 pm
by Yatin

Hi Galyna,

External library v3.1 is in use. And I tried testing this on Appery.io tester app for Android. Nothing happens there.

As per the video https://www.youtube.com/watch?v=otVP9... , my app-assets-www-list-plugins should contain folders for multiple cordova plugins. As shown in the screenshot below

Image

whereas in my app it looks something like this

Image

should this be a reason for concern?


Uncaught ReferenceError: ToastPlugin is not defined

Posted: Wed Apr 06, 2016 10:18 pm
by Yurii Orishchuk

Hi Yatin,

To test any cordova-based plugin you need to run your app on device as installed binary.

Unfortunatly you can not test it in the browser or in Appery.io Tester app.

So, basic plan for your case is:

1 download plugin zip.

2 upload it to Appery.io as cordova plugin.

3 open "app settings" interface and enable uploaded plugin(step 2).
Details: http://prntscr.com/ap1rha/direct

4 add "device ready" event handler to your app start page.

5 use in this event handler code (from plugin documentation).

6 generate app binary(for your device).

7 install generated binary on device and run it.

Regards.