cordova-screenshot icon indicating copy to clipboard operation
cordova-screenshot copied to clipboard

can't use returned file path to share

Open jamesdouglasappleprint opened this issue 8 years ago • 6 comments

I've tried combining this plugin with a social-share plugin, but the returned file path from screenshot doesn't seem to work. The images are saving to my phone correctly, but not the file path doesn't work.

Any thoughts?

navigator.screenshot.save(function(error,res){ if(error){ console.error(error); }else{ window.plugins.socialsharing.share('Message and image', null, res.filePath, null) console.log(res.filePath); } },'jpg',50,'filename');

jamesdouglasappleprint avatar Feb 17 '16 09:02 jamesdouglasappleprint

Hi James, do you have any update on your issue ?

camkLcbr avatar Mar 02 '16 16:03 camkLcbr

Nope - I've had to remove the functionality from my app since it won't work on iOS :(

jamesdouglasappleprint avatar Mar 04 '16 08:03 jamesdouglasappleprint

I just tested in ios simulator (ios 9.2) with cordova ios 3.8.0 and cordova 6.0.0, I don't have such problem. could you please tell me your ios version and ios platform version of cordova ?

gitawego avatar Mar 06 '16 14:03 gitawego

As for me i'm using Cordova 5.4.1 and latest ios version. I'll try to update to cordova 6, Thx !

camkLcbr avatar Mar 07 '16 13:03 camkLcbr

getting this path /private/var/mobile/Containers/Data/Application/62EC48AB-542D-4A4B-8A45-1AA0164E7CB6/tmp/myscreenshot.jpg.jpg not able to see in gallery in IOS please help.

nicks258 avatar Feb 20 '18 10:02 nicks258

same problem

mfouadegy avatar Sep 18 '20 05:09 mfouadegy