【发布时间】:2014-07-27 06:12:33
【问题描述】:
我正在尝试将 SocialSharing 插件与 PhoneGap Build 一起使用。
我已将以下内容放入 config.ml 文件中:
<gap:plugin name="nl.x-services.plugins.socialsharing" version="4.0.8" />
这是我的 HTML 索引页面的示例:
<html>
<head>
<script type="text/javascript" src="SocialSharing.js"></script>
</head>
<body>
<section id="landmarks" data-role="page">
<button onclick="window.plugins.socialsharing.share('My message')">share!</button>
<button onclick="window.plugins.socialsharing.share('Message only')">message only</button>
<button onclick="window.plugins.socialsharing.shareViaTwitter('Message via Twitter')">message via Twitter</button>
</section>
</body>
</html>
当我点击按钮时(从 PhoneGapBuild 下载应用程序后),没有任何反应。
有什么想法吗?
【问题讨论】:
标签: jquery cordova phonegap-plugins phonegap-build socialshare