[AC-831] Web-view not opening external URLS embedded inside web view content on android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2014-10-21T21:49:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | ARSLAN |
Assignee | Mauro Parra-Miranda |
Created | 2014-10-20T11:31:31.000+0000 |
Updated | 2016-03-08T07:37:06.000+0000 |
Description
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.
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
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.
Would you please provide the url of the pdf you had tested. thanks
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
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