Titanium JIRA Archive
Appcelerator Community (AC)

[AC-831] Web-view not opening external URLS embedded inside web view content on android

GitHub Issuen/a
ResolutionNot Our Bug
Resolution Date2014-10-21T21:49:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
AssigneeMauro Parra-Miranda


Hi there,i am trying to know is there any way we can open external urls inside our web view remote content in android because i am unable to do so for the last couple of hours.i have a PDF document embedded inside my web view remote content i am unable to view the doc in the web view or even web browser.


  1. Shuo Liang 2014-10-21

    Hi, Please have a look the Android Platform Implementation Notes section of this doc [http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.WebView], If the problem still exist, please comment on this ticket again. Hope this will help you. Regards, Shuo
  2. ARSLAN 2014-10-21

    Hi Shuo Liang thanks a lot for a quick response.I have read the whole documentation of Web View,but it seems to provide no luck, if i open the url using Titanium.Platform.openURL it seems to work fine,but if i use Ti.UI.webView The external link inside the web view url doesn't get opened,i have a opt out policy page inside it is a link to download the pdf document of the opt out policy,i need to open this page inside webview not in the browser (Titanium.Platform.openURL).let me know if you still needs more clarification.
  3. Shuo Liang 2014-10-21

    Would you please provide the url of the pdf you had tested. thanks
  4. ARSLAN 2014-10-21

    this is the original url of the page: https://www.getdeetz.com/opt-out/?req_source=mob , and there is a download opt out from here link in this page,whose url is mentioned below: https://getdeetz.com/wp-content/uploads/2014/06/Get-Deetz-Opt-Out-Form.pdf
  5. Mauro Parra-Miranda 2014-10-21

    Hello! There is no way to open the PDF inside the webview. Android doesn't work like that. You either use an intent to open an external PDF reader or your create a native android module that offers the capability to read PDF inside the app. Please read this answer in order to learn how to open the intent for PDF from your app. http://developer.appcelerator.com/question/72361/open-pdf-file-on-android Best Regards, Mauro

JSON Source