i use this great plugin https://github.com/katzer/cordova-plugin-local-notifications to implement local notification when downloading a file. i don't find how to display a progress bar in the notification like in native one http://javatechig.com/wp-content/uploads/2014/05/Displaying-Progress-Notification-in-Android-Example.png can you help?
相关问题
- Should I use CSS3 media queries to deliver differe
- apk big size with ionic 4 build
- How to read file in android using PhoneGap Javascr
- Ionic start give error: There was an error with th
- InAppBrowser Allow-Navigation ONLY MY DOMAIN when
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Phonegap - Error - Keystore alias not recognized
- Can't use serve with Cordova / Phonegap hellow
- ionic - Copy/paste in input field in iOS 10 not wo
- PhoneGap iOS 7 and localStorage
- deviceready not firing in cordova
- net::ERR_CONNECTION_REFUSED ionic
- Phonegap - Missing App Store Icon 1024x1024px App
Use plugin cordova-file-Transfer and make the following changes:
You can change the plugin this way for android platform.
Create class
FileProgressBarTask
with bellow code:Change class
FileTransfer
with bellow code:On the line ~700 in method download on class
FileTransfer
:Find the block code on the method download that contains:
while
andprogress.setLoaded(inputStream.getTotalRawBytesRead());
on method download, insert bellow code:Based on: