将插件集成到phonegap Build

时间:2014-02-25 08:35:52

标签: javascript android cordova phonegap-plugins phonegap-build

我正在使用Local Notification Plugin for the Andod使用PhoneGap Build,但它不起作用。

这是我的代码

的Config.xml:

            <gap:plugin name="de.appplant.cordova.plugin.local-notification" />

并在Javascript中:

           <script type="text/javascript">
        document.addEventListener("deviceready", onDeviceReady, false);


        // device APIs are available
        //
        function onDeviceReady() {
            window.plugin.notification.local.add({ message: 'Great app!' });
        }
  </script>

它没有显示任何通知。请帮我看看如何使用phoneGap Build为Andriod集成第三方插件。

1 个答案:

答案 0 :(得分:0)

使用Git Link

Src文件夹中添加插件,并在xml中提供准确的路径。

或者从git代码上方引用plugins.xml