react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Progressbar Support

Open stainsmjohnson opened this issue 4 years ago • 1 comments

It would be a great idea if we could add progressbar support for showing download progress, i.e. in case of using RNFetchBlob we need to show progress from Javascript thread, I have achieved this through this lines of code

`//to show progressbar Bundle progress = bundle.getBundle("progress"); if (progress != null) { int currentProgress =Integer.parseInt(progress.getString("current")); int totalProgress =Integer.parseInt(progress.getString("max")); notification.setProgress(totalProgress,currentProgress,false); }

in line 379 of RNPushNotificationHealper.java

and progress: { current: '35', max: '100', },

from js `

Resason: android download manager not working in specific devices namely 'OPPO','REALME' for some modals, and getting error like cannot receive broadcast intent DOWNLOAD_COMPLETE

stainsmjohnson avatar Jul 20 '21 09:07 stainsmjohnson

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 21 '22 00:07 github-actions[bot]