javascript - How to use the screenshot plugin using the background plugins in phonegap for capturing any screen -


how capture screen using screenshot plugin outside of app of background plugin?

i using plugin: https://github.com/jcrowson/android-phonegap-screenshot-plugin

are developping ios? because ios can quirky. in android, should works.

onpause native cordova call when app goes in background

https://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html

function onpause() {   navigator.screenshot.save(function(error,res){});  } 

don't put console.log or native call (or loops, intervals), ios kill them (and maybe plugin use native call wont able call it)


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -