[TIMOB-8095] MobileWeb: Ti.Platform.openURL() causes errors if it can't load a URL
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-21T14:00:57.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | MobileWeb |
Labels | qe-port |
Reporter | Chris Barber |
Assignee | Bryan Hughes |
Created | 2012-03-19T17:32:25.000+0000 |
Updated | 2012-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
File | Date | Size |
app.js | 2012-03-21T10:58:26.000+0000 | 732 |
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1778
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