Code Monkey home page Code Monkey logo

Comments (11)

EddyVerbruggen avatar EddyVerbruggen commented on August 15, 2024

How do you install the plugin, and which version do you get?

from toast-phonegap-plugin.

bobibt avatar bobibt commented on August 15, 2024

cordova plugin add...
version 2.0.4

from toast-phonegap-plugin.

bobibt avatar bobibt commented on August 15, 2024

I see now that the update is from 2.1.0+ so i should install specific version of the plugin.
Like this it gets v2.0.4, don't know why.

from toast-phonegap-plugin.

rajamohammed avatar rajamohammed commented on August 15, 2024

It throws "Class not found" error in error call back . below is the code snippet im using.

var toast = function (mes,dur,pos) {
  window.plugins.toast.showWithOptions(
    {
      message: mes,
      duration: dur,
      position: pos,
      addPixelsY: -40  // added a negative value to move it up a bit (default 0)
    },function(){

    },function(e){
      console.debug(e);
      console.log('error');
    }

  );
};

//Function call

 toast('Toast Message','short','bottom');

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 15, 2024

Is there a Toast class in your project? Which platform is this? And which device/version.

from toast-phonegap-plugin.

rajamohammed avatar rajamohammed commented on August 15, 2024

Added the plugin via cordova cli , Im using it in 'Ionic' project . Device - Android 4.1

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 15, 2024

Is there a Toast.java class in your platforms/android/... folder? Perhaps try cordova prepare as well after adding the plugin.

from toast-phonegap-plugin.

rajamohammed avatar rajamohammed commented on August 15, 2024

Yeah its available in platforms/android/src/x-service/plugins/Toast.java

Did cordova prepare as well still the same .

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 15, 2024

Dunno then, if you can't figure it out feel free to send me your project at eddyverbruggen at gmail.

from toast-phonegap-plugin.

rajamohammed avatar rajamohammed commented on August 15, 2024

Ahh .. Mistake . i have been testing it on ionic --livereload mode .

It works perfect in device 👍 💯

Thank you for the wornderful plugin :)

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 15, 2024

Nice!

from toast-phonegap-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.