我包括socialsharing插件安装到config.xml文件为:的PhoneGap /科尔多瓦:socialsharing插件不工作
<gap:plugin name="nl.x-services.plugins.socialsharing" />
(使用科尔多瓦v 3.3.1)
在我的HTML我有:
现在<script src="phonegap.js"></script>
or
<script src="cordova.js"></script>
打电话时:
function shareReport() {
window.plugins.socialsharing.share(mytext);
}
按钮:
onclick="shareReport()"
该程序突然停止并关闭。 (“mytext”是一个全局变量,填充了一个包含html标签的文本字符串 - 这个变量在这一点上有一个值)
任何建议发生了什么问题?
谢谢你在前进, 克里斯
它是否在控制台日志中提供任何线索? – flauntster
你目前使用哪个平台? –