Showing camera view inside html in android and then snap a picture

You can install mbppower/CordovaCameraPreview plugin (for android,ios) in your Cordova/phonegap application that allows camera interaction from HTML code. A really amazing plugin it is.. You can access Features such as: Start a camera preview from HTML code. Drag the preview box. Set camera color effect (Android and iOS),Send the preview box to back of the … Read more

Custom Cordova Plugin: Add framework to “Embedded Binaries”

I’ve implemented a workaround until it’s supported by Cordova’s plugin.xml, hopefully, in the future, once an embed property in such entries will have the same effect: <framework embed=”true” src=”https://stackoverflow.com/questions/36650522/…” />, for now, this property does not help, hence the following workaround. The following solution worked using Cordova version 5.3.3. First, make sure to add the … Read more

Update cordova plugins in one command

I got tired of manually checking for plugin updates so created a tool to do it for me: https://github.com/dpa99c/cordova-check-plugins Install it globally: $ npm install -g cordova-check-plugins Then run from the root of your Cordova project. You can optionally update outdated plugins interactively or automatically, e.g. $ cordova-check-plugins –update=auto

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

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

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