Generating iOS and Android icons in Cordova / PhoneGap

I wrote a script that auto generates icons for cordova using ImageMagick: https://github.com/AlexDisler/cordova-icon To use it, create an “icon.png” file and place it in the root folder of your project, then run: cordova-icon and it will generate all the required icons for the platforms your project has. You can also configure it as a hook … Read more

Adding google plus login to ionic app

Steps to Configure authentication in Device(android) ionic start newApp ionic platform add android cordova plugin add cordova-plugin-inappbrowser bower install ngCordova bower install ng-cordova-oauth -S include both script into index.html above cordova.js <script src=”https://stackoverflow.com/questions/37523038/lib/ngCordova/dist/ng-cordova.min.js”></script> <script src=”lib/ng-cordova-oauth/dist/ng-cordova-oauth.js”></script> <script src=”https://stackoverflow.com/questions/37523038/cordova.js”></script> Dependency injection include below code $scope.googleLogin = function() { console.log(‘In My Method’); $cordovaOauth.google(“Client ID”, [“https://www.googleapis.com/auth/urlshortener”, “https://www.googleapis.com/auth/userinfo.email”]).then(function(result) { console.log(JSON.stringify(result)); … Read more

Using katzer local notification in IBM Worklight

I got this to work by following the below. Demo project: https://www.dropbox.com/s/58urdluauc8u3l1/AndroidLocalNotifications.zip Because Worklight does not support Cordova’s Plugman to easily “install” Cordova v3 plug-ins, some manual labor is required to get it all set-up properly… blachs. Note the appName , it is used throughout the process for plug-in declarations. If you use a different … Read more

Add entry to iOS .plist file via Cordova config.xml

I don’t think you can do this via straight config.xml modification. At least, I didn’t see any mention of this in the docs: http://cordova.apache.org/docs/en/3.3.0/config_ref_index.md.html I think you have to create a plugin, because they can insert plist entries: http://docs.phonegap.com/en/3.3.0/plugin_ref_spec.md.html#Plugin%20Specification See the ‘config-file element’ section. Here’s a guess as to what the relevant section of the … Read more