android - Navigator.screenshot 'Undefined' -
i using this plugin capture screenshot in phonegap application. here code.
$('#share').click(function(){ alert('navigatorobj '+navigator.screenshot+ " windowobj " + window.plugins.screenshot); }
problem:
both window.plugins.screenshot , navigator.screenshot return undefined
. however, window.plugins , navigator return objects
.
config.xml
<feature name="screenshot"> <param name="android-package" value="com.darktalker.cordova.screenshot" /> </feature>
cordova_plugins.js
{ "file":"plugins/com.darktalker.cordova.screenshot/www/screenshot.js", "id": "com.darktalker.cordova.screenshot.screenshot.js", "clobbers": [ "navigator.screenshot" ] } module.exports.metadata = // top of metadata { "com.darktalker.cordova.screenshot": "0.1.1" }
i have pasted screenshot.java in com.darktalker.cordova.screenshot (created folders)
please help. highly recommended.
Comments
Post a Comment