Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davibe/phonegap-downloader
Downloader plugin for iOS PhoneGap that exposes the same API of its android counterpart (https://github.com/phonegap/phonegap-plugins/tree/master/Android/Downloader)
https://github.com/davibe/phonegap-downloader
Last synced: about 1 month ago
JSON representation
Downloader plugin for iOS PhoneGap that exposes the same API of its android counterpart (https://github.com/phonegap/phonegap-plugins/tree/master/Android/Downloader)
- Host: GitHub
- URL: https://github.com/davibe/phonegap-downloader
- Owner: davibe
- Created: 2011-12-23T09:52:26.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-04-02T14:19:35.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T17:56:05.608Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 851 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Phonegap Downloader
===================This plugin allows downloading files from http urls just like its [android
counterpart](https://github.com/phonegap/phonegap-plugins/tree/master/Android/Downloader) does, with the same API.- "Plugins/" contains objc source code of the plugin
- "Downloader/" contains the project stuff created by PhoneGap project template for the sample project
- "Downloader.xcodeproj" is the sample project you should be able to open in XCode
- "www/" contains
- coffeescript version of the plugin
- javascript compiled version
- an example of how it can be usedNotes on ARC:
This plugin does not use the new iOS ARC facility. It's possible to convert it to ARC with the automatic XCode procedure. You will also have to change @property lines. Be careful to avoid Reference Cycles since DownloaderTasks retains NSURLConnection and NSURLConnection retains the DownloaderTask as it's delegate. One of the @property should be set to weak.Installing
==========Drag .h and .m files into your project's Plugins folder (in xcode) -- I always
just have "Create references" as the option selected.Take the precompiled javascript file from www/, or compile the coffeescript
file (.coffee) to javascript WITH the top-level function wrapper option (default).Use the resulting javascript file in your HTML.
Look for the following to your project's PhoneGap.plist:
Plugins
...
Insert this in there:
Downloader
DownloaderGeneral Usage
=============Look at www/index.html for a very simple example.
Note that you can also download multiple files at once. Also this plugin ALWAYS OVERWRITES if the target file already exists.