문제

I am struggling with making this pushNotifications plugin https://github.com/phonegap-build/PushPlugin work on my Cordova built app.

In the config.xml file, the plugin reference is :

<gap:plugin name="com.phonegap.plugins.PushPlugin"/>

while references to other plugins I am using are different :

    <feature name="Device">
        <param name="ios-package" value="CDVDevice" />
    </feature>

    <feature name="Geolocation">
        <param name="ios-package" value="CDVLocation" />
    </feature>

Is this plugin supposed to work with both Phonegap and Cordova or only Phonegap built apps ?

Thank you

도움이 되었습니까?

해결책

adding the line

<gap:plugin name="com.phonegap.plugins.PushPlugin"/>

in config.xml is the way you add a plugin with the phonegap build service.

When you are doing local builds for cordova or phonegap, you should use the CLI (command line interface) to add plugins.

For the push plugin, either launch

phonegap local plugin add https://github.com/phonegap-build/PushPlugin.git

or

cordova plugin add https://github.com/phonegap-build/PushPlugin.git
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top