Coder Social home page Coder Social logo

Comments (6)

EddyVerbruggen avatar EddyVerbruggen commented on May 26, 2024 1

I love the idea of having a browser implementation, but that has to go the PR route..

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on May 26, 2024

Nope you can't. Cordova plugins can only be used when Cordova is loaded. On a device or in a simulator.

You can however do this to have a fallback for running it in the webbrowser:

function showToast(msg) {
  if (window.plugins && window.plugins.toast) {
    // do your toast
  } else {
    // toast fallback
    alert(msg);
  }
}

from toast-phonegap-plugin.

vipulsodha-zz avatar vipulsodha-zz commented on May 26, 2024

ohk !

from toast-phonegap-plugin.

shprink avatar shprink commented on May 26, 2024

Is it possible to re-open that and actually create the browser platform version? http://www.raymondcamden.com/2014/09/24/Browser-as-a-platform-for-your-PhoneGapCordova-apps

from toast-phonegap-plugin.

shprink avatar shprink commented on May 26, 2024

cordova platform add browser

from toast-phonegap-plugin.

timbru31 avatar timbru31 commented on May 26, 2024

It's been two years, but it seems https://github.com/apache/cordova-browser is picking up speed - it would be awesome if this issue can be re-opened!

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.