|

楼主 |
发表于 2018-1-22 08:48:53
|
显示全部楼层
fileTransfer.download(url, filePath + newFileName, function(entry) {
ToastMsg("PDF下载完成", false);
// cdvfile文件转换为通常文件路径
resolveLocalFileSystemURL(filePath + newFileName, function(entry) {
var nativePath = entry.toURL();
//alert(nativePath);
plugins.socialsharing.share(null, null, nativePath, null);
或 plugins.socialsharing.share(null, null, url, null);
});
// 分享文件通常
// alert(filePath + newFileName);
// plugins.socialsharing.share(null, null, filePath + newFileName,
// null);
// 指定分享
// plugins.socialsharing.canShareVia("jp.co.canon.bsd.ad.pixmaprint.EulaActivity",
// null, nativePath, null); |
|