phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.32k stars 999 forks source link

add API KEY variables in config.xml #385

Open alexislg2 opened 9 years ago

alexislg2 commented 9 years ago

Hey folks I doscovered a new feature for cordova: you can do cordova save plugins --experimental to save all your plugins in the config.xml file. And after you just have to do cordova restore plugins --experimental to install the plugins from their cordova/github repo. This is very useful for sharing a cordova project on github

This is great. But how can I do the same with your plugin and add the variables ? I tried

    <feature name="phonegap-googlemaps-plugin">
        <param name="API_KEY_FOR_ANDROID" value="XXX" />
        <param name="API_KEY_FOR_IOS" value="XXX" />
        <param name="id" value="plugin.google.maps" />
    </feature>

but it doesn't work

hirbod commented 9 years ago

This plugin does not have any API-Keys, only SenderID for Android but I guess you should put this inside your app.js