Giter VIP home page Giter VIP logo

cordova-plugin-ondestroy's Introduction

cordova-plugin-ondestroy's People

Contributors

agamemnus avatar jonathanallen1 avatar perksadam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cordova-plugin-ondestroy's Issues

Plugin doesn't work

Here is the steps that I applied
1-> I installed plugin that I mentioned above
2-> Here is the code inside app.js

.
.
.
$ionicPlatform.ready(function() {
	window.plugins.OnDestroyPlugin.setEventListener (function() {
		localStorage.setItem("OnDestroyPlugin", true);
	});
});
.
.
.

3-> application is terminated
4-> application opened
5-> localStorage has not been added

Can't make it worked

Hi,

I tried too to make your plugin work, without success yet.

Well, I've seen that your main branch it was mapped on OnDestroyPlugin.
I tried therefore the following
window.plugins.OnDestroyPlugin.setEventListener(function(){ alert('test')})

I tried also your #ondestroy branch , with changing the name of the plugin
window.plugins.OnDestroy.setEventListener(function(){ alert('test')})

My use case is the following :

  • user clicks home button (app is in background)
  • user long press android home and see running process
  • user swipe my app => I was expecting my alert (I tried also with a console.log)

Any suggestions ?
What am I doing wrong ?

Class not found

Hi,

After rename window.plugins.OnDestroy. to window.plugins.OnDestroyPlugin and add a log error in the exec function in javascript I get a Class Not Found error.

I checked all configs files but I din't notice wrong compare to other Cordova's Plugin.

Have you an idea ?

Thanks

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.