Skip to content

ZhichengChen/cordova-plugin-android-home

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#cordova-plugin-android-home Send App in background to Minimize the application and it's still running for android.

Base on http://stackoverflow.com/questions/17826122/send-application-to-background-mode-when-back-button-is-pressed-in-phonegap. #Installation cordova plugin add https://github.com/ZhichengChen/cordova-plugin-android-home

#Usage

navigator.home.home(succesCallback, errorCallback)
  • succesCallback: Callback to invoke when home is success. (Function)
  • errorCallback: Callback to invoke when error occor. (Function)

#Example

navigator.home.home(function(){
    console.info("Successfully launched home intent");
}, function(){
    console.error("Error launching home intent");
});

#Support Platforms

  • Android

About

Send the Android application to background and it's still running.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published