Uncaught ReferenceError: ToastPlugin is not defined

This forum contains topics that were moved from Get Satisfaction
Madi Anas
Posts: 0
Joined: Thu Sep 03, 2015 9:52 pm

Uncaught ReferenceError: ToastPlugin is not defined

Post 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.

Mark MB
Posts: 0
Joined: Wed May 27, 2015 7:34 am

Uncaught ReferenceError: ToastPlugin is not defined

Post 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.

Ronnel Dela Cruz
Posts: 0
Joined: Sat Jan 16, 2016 9:58 am

Uncaught ReferenceError: ToastPlugin is not defined

Post by Ronnel Dela Cruz »

what's your problem I managed to run it.

Mark MB
Posts: 0
Joined: Wed May 27, 2015 7:34 am

Uncaught ReferenceError: ToastPlugin is not defined

Post by Mark MB »

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

Yatin
Posts: 0
Joined: Wed Apr 06, 2016 10:10 am

Uncaught ReferenceError: ToastPlugin is not defined

Post 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.

Galyna Abramovych
Site Admin
Posts: 68
Joined: Tue Mar 22, 2016 6:03 pm

Uncaught ReferenceError: ToastPlugin is not defined

Post 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.

Yatin
Posts: 0
Joined: Wed Apr 06, 2016 10:10 am

Uncaught ReferenceError: ToastPlugin is not defined

Post 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

Galyna Abramovych
Site Admin
Posts: 68
Joined: Tue Mar 22, 2016 6:03 pm

Uncaught ReferenceError: ToastPlugin is not defined

Post 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?

Yatin
Posts: 0
Joined: Wed Apr 06, 2016 10:10 am

Uncaught ReferenceError: ToastPlugin is not defined

Post 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?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Uncaught ReferenceError: ToastPlugin is not defined

Post 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.

Post Reply