Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25868] Windows: Implement WebView.onlink callback

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-10-16T12:40:23.000+0000
Affected Version/sRelease 7.1.0
Fix Version/sRelease 7.5.0
ComponentsWindows
Labelsparity
ReporterVictor Vazquez Montero
AssigneeKota Iguchi
Created2018-03-14T23:34:18.000+0000
Updated2018-10-16T15:19:21.000+0000

Description

description

Costumer is attempting to load a pdf for android using intents with webview. in the mobile app they are using webview control for displaying the remote web site by binding a URL. The web pages in the web site contains few pdf links. On click of normal hyperlinks, respective web page is being shown in the web view. Whereas, on tapping a pdf links, a blank window is getting opened in Android devices. In iOS it’s working fine and a PDF is showing. Per Jira WebView cannot disply PDF documents on Android. So they are using intents as a workaround to open the PDF link. The issue is that on click of the pdf link in the web view, they are unable to get the exact PDF url with any of Titanium WebView API methods or events The customer was able to do it natively and open the PDF's with intents.

Request

The customer wants to know how to get the exact PDF link using the webview API or if there is a workaround they could use.

additional information

attached are two apps. One is a titanium app and one is an android native application. [titanium app](https://axwaysoftware-my.sharepoint.com/personal/vvazquezmontero_axway_com/_layouts/15/guestaccess.aspx?guestaccesstoken=rsxSxfm51VH5t8MRm7YpDX1bHDfJfDfaycmtpKrlAEE%3d&docid=2_11a957eab95234b6ab84003e12f7b0b41&rev=1)

Attachments

FileDateSize
app.js2018-03-14T23:34:19.000+0000826
app (1).js2018-03-14T23:34:19.000+0000826

Comments

  1. Kota Iguchi 2018-03-20

    https://github.com/appcelerator/titanium_mobile_windows/pull/1211
  2. Samir Mohammed 2018-10-05

    FR Passed, Waiting on Jenkins build.
  3. Samir Mohammed 2018-10-16

    *Closing ticket.* Verified improvement in SDK Version 7.5.0.v20181016071050. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1211

JSON Source