Question

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

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top