Giter Club home page Giter Club logo

cordova-plugin-back-as-home's Introduction

Cordova Plugin - Back As Home

With this plugin you can trigger home button functionality by pressing back button. Means you can minimize the app by pressing back button

Using

Add Plugin

$ cordova plugin add https://github.com/amitsinha559/cordova-plugin-back-as-home.git

add the following code where ever is required

backAsHome.trigger(function(){
    console.log("Success");
}, function(){
    console.log("Error");
});

Platforms

Only for Android

cordova-plugin-back-as-home's People

Contributors

amitsinha559 avatar danielsogl avatar rlindgren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cordova-plugin-back-as-home's Issues

Audio not run on background

I use NativeAudio plugin for my audio application and I use your plugin for background run. But when i click back button application goes minimize but audio pause. I need to know that, are you using Cordova media plugin or NativeAudio plugin. Please help

Falied to fetch plugin

Its return an error below when trying to install the plugin. Any help when will highly appreciate .

Error: Failed to fetch plugin https://github.com/amitsinha559/cordova-plugin-bac
k-as-home.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\joy2012bd\AppData\Roaming\npm-cache_logs\2018-01-18T10_25
_19_528Z-debug.log

not working

Have you tested this in cordova 5.3.1 ? Below is my test results

  1. tested on real android device, back button not working
  2. test on emulator, debug with chrome, unable to find object 'backAsHome' in js console

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.