ionic 2在通知中显示文件下载进度 [英] ionic 2 show file download progress in notification

查看:83
本文介绍了ionic 2在通知中显示文件下载进度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示如图所示的下载通知.我正在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆