Skip to main content

Posts

Showing posts from March, 2015

File Upload & Download With ng-cordova File Transfer Plugin In Ionic Framework

Using the AngularJS extension set , ngCordova , with Ionic Framework and the Apache Cordova File Transfer plugin, you can easily upload files to a remote server and download files from a remote server. 1.Create the project ionic start Test blank cd Test ionic platform add android 2.Add Plugin org.apache.cordova.file-transfer https://github.com/apache/cordova-plugin-file-transfer This plugin allows you to upload and download files. This plugin defines global FileTransfer, FileUploadOptions Constructors. Although in the global scope, they are not available until after the deviceready event . Installation cordova plugin add cordova plugin add cordova-plugin-file-transfer     2.    org.apache.cordova.file             https://github.com/apache/cordova-plugin-file             This plugin implements a File API allowing read/write access to files residing on the    device.             Installation cordova plugin add cordova-pl

Share images, text, messages via Facebook, Twitter, Email, SMS, WhatsApp, etc With ng-cordova in Ionic Framework

PhoneGap Social Sharing for Android, iOS and Windows Phone The following Content will show you how to make use of social media sharing in your Android and Windows and iOS mobile application using I onic Framework . To implement this , we’ll be using the AngularJS extension set, ngCordova , along with the Apache Cordova plugin SocialSharing . 1.Create the project ionic start Test blank cd Test ionic platform add android 2.Add Plugin ( Share images, text, messages via Facebook, Twitter, Email, SMS, WhatsApp, etc using this plugin. ) cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git 3.Implementation Download the latest stable ngCordova release and copy ng -cordova.js to your www/js directory.  With the library in place, you now need to add it to your projects index.html file similar to the following: < !DOCTYPE html> <html>  <head>    <meta charset="utf-8">    <meta na