我正在使用此插件在我的Android Phonegap项目上共享图像. https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin
为了共享图像,我使用这些参数调用插件
window.plugins.socialsharing.share('Title', null,'/data/data/com.example.app/images/myimage.jpg', null);
Run Code Online (Sandbox Code Playgroud)
然后得到以下错误:
file:///android_asset/www/plugins/nl.x-services.plugins.socialsharing/www/SocialSharing.js:第93行:收到的'share'注入的错误回调:"URL_NOT_SUPPORTED"
我尝试共享的图像文件是使用Context.MODE_PRIVATE权限创建的.
File myImageFile= new File(context.getDir("images", Context.MODE_PRIVATE), "myimage.jpg");
Run Code Online (Sandbox Code Playgroud)
我怀疑其中一个可能是失败的原因: