Notice: this plugin is tested on phonegap 1.3.0 xcode 4.1 debugger shows no error
How to Install
download the plugin ,Open your Xcode project, Right-click on the Plugins folder in Xcode and select “Add Files to…”.
select the pixFileDownload folder. Check “Copy items into. . .” and “Create groups for. . .”
Copy/Paste the pixFileDownload.js file from the pixfiledownload folder to the www folder (or where ever you are placing your js files).
in you index.html file add this line in the head section:
- add the plugin to your PhoneGap,plist file found in (Supporting Files > PhoneGap.plist) :
Key: PixFileDownload Type: String Value: PixFileDownload
- now we need to add the pixfiledownload declaration to AppDelegate.m found in (Classes > AppDelegate.m) your file should look like this
so it looks like this now:
#import "AppDelegate.h" #ifdef PHONEGAP_FRAMEWORK #import <PhoneGap/PhoneGapViewController.h> #else #import "PhoneGapViewController.h" #endif #import "PixFileDownload.h" @implementation AppDelegate
now the plugin is ready to work
Orginal work can be found in https://github.com/aaronksaunders/FileDownLoadApp
fixes taken from: