ionic 2在通知中显示文件下载进度 [英] ionic 2 show file download progress in notification
问题描述
我想显示如图所示的下载通知.我正在使用ionic 2 Cordova文件传输
i want to show the download notification as in the image. i'm am using ionic 2 Cordova file transfer
推荐答案
Cordova文件传输将下载文件,但不会在通知中心显示进度栏.当您使用本机android的下载管理 r来显示进度条时执行下载.虽然Ionic Native不包含可以执行此操作的插件,但是有一些可以使用. https://github.com/vasani-arpit/cordova-plugin-downloadmanager& https://github.com/emilbayes/cordova-plugin-android-downloadmanager
Cordova file transfer will download the file, but will not show a progress bar in the notification center. The progress bar is displayed when you use the download manager of native android to perform the download. While Ionic Native does not contain a plugin that can do this, there are a few that work. https://github.com/vasani-arpit/cordova-plugin-downloadmanager & https://github.com/emilbayes/cordova-plugin-android-downloadmanager
这篇关于ionic 2在通知中显示文件下载进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!