Here is a small blog about how to perform a download with a progress bar in the notification tray in a PhoneGap app on the Android platform.
It is based on the plugin on github (link), but that plugin is slightly out-dated PhoneGap wise.
What does it do
It downloads a file (url) that is send to the plugin.
The above is done by creating a phonegap plugin.
Important: be sure to change the "import org.teusink.pg_jqmexampleapp.R;" in the code above (change org.teusink to your own packagename).
And from that point you can call the plugin in your application by using the statement below.
You can generate your own notification icons in the Android Asset Studio by Roman Nurik, Google (they are free to use under the Creative Commons License).
Important: these icons are used in the code, see ".setSmallIcon(R.drawable.ic_stat_notification)" part. Of course you can skip or change them, but you will have to adjust the Java code.
Support library (jar file)
Be sure to include the library "android-support-v13.jar" from the support tools (\android-sdk\extras\android\support\v13) from the Android SDK in your project (libs folder). This to make sure the notifications work on all platforms of Android 2.3.3 and higher.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.