Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8095] MobileWeb: Ti.Platform.openURL() causes errors if it can't load a URL

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-21T14:00:57.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsMobileWeb
Labelsqe-port
ReporterChris Barber
AssigneeBryan Hughes
Created2012-03-19T17:32:25.000+0000
Updated2012-08-14T16:43:37.000+0000

Description

If you do Ti.Platform.openURL("tel:1231231233"), the browser will attempt to redirect to the telephone number. If the browser doesn't know how to deal with phone numbers, then it results in an error page and you need to hit the back button which reloads the page. Instead of doing a window.location.href, try opening the URL in an iframe.

Attachments

FileDateSize
app.js2012-03-21T10:58:26.000+0000732

Comments

  1. Bryan Hughes 2012-03-21

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1778
  2. Lokesh Choudhary 2012-08-14

    Verified fix on: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120814103312 Android 4.0.4 - default ,chrome 18.0 , firefox 14.0.1 Iphone 5.1.1 - safari mobile Mountain lion(10.8) - chrome 21.0,safari 6,firefox 14.0.1

JSON Source