{ "id": "78594", "key": "TIMOB-4860", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-03-04T22:53:40.000+0000", "created": "2011-08-01T11:44:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "exalture" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-26T09:17:04.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Add the ability to download files in a webView from a page that is hosted remotely. More specifically, add the ability to download an apk and install it as you can in the Android browser.\r\n\r\nStep 1: create an app with the code below\r\nStep 2: create an a file named index.html on your server with the html below\r\nStep 3: put Test3.apk in the same folder as index.html\r\nStep 4: change the url in the app to point to the index.html that you made\r\nStep 5: click on the link and notice that it does not download the file\r\nStep 6: open the same url in the Android browser and notice that you are able to download the file when you click on the link and you are also able to install the akp.\r\n\r\n{code:title=\"app.js\"}\r\nvar win = Titanium.UI.createWindow();\r\nvar webview = Titanium.UI.createWebView({\r\n url: 'http://localhost/~jalter/test/' \r\n});\r\nwin.add(webview);\r\nwin.open();\r\n{code}\r\n{code:title=\"index.html\"}\r\n \r\n
\r\n
\r\n Download android
\r\n
\r\n
\r\n\r\n{code}\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-623653\r\n", "attachment": [ { "id": "22173", "filename": "Test3.apk", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-01T11:44:41.000+0000", "size": 2257383, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Android: download files in a WebView", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.7.2\r\nAndroid 2.2", "comment": { "comments": [ { "id": "222017", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Submitted: https://github.com/appcelerator/titanium_mobile/pull/3200", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-03T23:56:23.000+0000", "updated": "2012-10-12T23:50:58.000+0000" }, { "id": "295657", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We will not be addressing this issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-04T22:53:40.000+0000", "updated": "2014-03-04T22:53:40.000+0000" }, { "id": "415179", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:57:10.000+0000", "updated": "2017-03-22T22:57:10.000+0000" }, { "id": "432386", "author": { "name": "chanakya", "key": "chanakya", "displayName": "chanakya", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi All,\r\n\r\nIs there any solution to download the file/document in webview ?", "updateAuthor": { "name": "chanakya", "key": "chanakya", "displayName": "chanakya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-19T10:49:27.000+0000", "updated": "2017-12-19T10:49:27.000+0000" }, { "id": "432551", "author": { "name": "chanakya", "key": "chanakya", "displayName": "chanakya", "active": true, "timeZone": "America/Los_Angeles" }, "body": "HI All,\r\n\r\nI was unable to resolve this issue.\r\n\r\nIs there any solution to download the file/document in webview ?", "updateAuthor": { "name": "chanakya", "key": "chanakya", "displayName": "chanakya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-26T09:17:04.000+0000", "updated": "2017-12-26T09:17:04.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }