duanhe4155 2019-06-18 15:20
浏览 76

如何使用cordova inappbrowser下载图像的力量

I am stumbling upon some issues regarding Cordova and it's inappbrowser plugin.

My situation: I have this cordova app wich (ondeviceready) loads up the inappbrowser and leads you to the website (wich is made with CodeIgniter 2.2.6). This is the only functionality inside this app (except for notifications).

Now the website is using codeigniter its function "force_download" to download images, this works on the chrome on smarthpone. But when clicked to download this image within the inappbrowser i do not get any response. Within the force_download function i do receive the mime, filename, and data.

It seems that the download is stuck in between the inappbrowser of cordova and never reaches the device itself.

Hoping somebody could help me out on this.

p.s.: I think the same issue arises when i try to copy text to clipboard (with the use of jquery) onclick of a button within this codeigniter website (inside inappbrowser). The text just does not get copied to the local clipboard of the device, it does work on the website and chrome mobile version (also on smartphone).

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 求数学坐标画圆以及直线的算法
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable
    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题
    • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
    • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
    • ¥15 自己瞎改改,结果现在又运行不了了
    • ¥15 链式存储应该如何解决
    • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站