How to change location to store screenshot


#1

I use screenshot cordova (https://github.com/gitawego/cordova-screenshot) to capture screen and share to fb, imess…
window.plugins.screenshot.save(function(error,res){
// do something}

Follow this code, the image will be save on :
'file://' + res.filePath

So, how i change location to store this image?
Thanks!


#2

Hello,

The location of the file is done in the plugin source code. You have to make changes to the source if you want to change the folder.
In android is in the Screenshot.java line 98.

Hope I help.


#3

Thank you so much.
I get it!
Now i face to a problem: When my app capture screen, it can not share to WhatApp in IOS. I find out, the reason is saving pics in file://… and what app cannot read file from this.