{ "id": "126174", "key": "TIMOB-16514", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15932", "description": "2014 Sprint 05 API", "name": "2014 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-03T23:10:30.000+0000", "created": "2014-02-10T19:12:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_webview", "qe-testadded", "supportTeam" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-29T17:27:22.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue description\r\nThere seem to be an issue where the telephone links are automatically calling the number instead of prompting the user beforehand. \r\n\r\nh6.Steps to reproduce\r\n- Go to Locations section of the app \r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor : 'white', layout: 'vertical'});\r\nvar aWebView = Ti.UI.createWebView({\r\n\turl: 'http://www.hdsupply.com/locations',\ttop: 25,\tbackgroundColor: 'gray',\r\n});\r\naWebView.addEventListener('load', function(e) {\r\n\tTi.API.info('webview loaded: '+ e.url);\r\n});\r\nwin.add(aWebView);\r\nwin.open();\r\n{code}\r\n\r\n- The locations section of the app has a webview. There you can see the html behind the tel: links. Click any tel number. No dialog box is displayed. Right screen of screen shoot attached.\r\n\r\n- If you go to http://www.hdspply.com/locations an iPhone using Safari and the tel: links are prompting me before making the call as they should. Left screen of Screen shoot attached. \r\n\r\nh6.Apple docs\r\n\"When a user taps a telephone link in a webpage, iOS displays an alert asking if the user really wants to dial the phone number and initiates dialing if the user accepts. When a user opens a URL with the tel scheme in a native app, iOS does not display an alert and initiates dialing without further prompting the user. However, a native app can be configured to display its own alert.\"\r\n\r\nhttps://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html", "attachment": [ { "id": "46252", "filename": "TIMOB-16514.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-28T21:57:59.000+0000", "size": 217098, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: tel: links on webviews are not prompting user before making the call", "creator": { "name": "demetri.ganoff@hdsupply.com", "key": "demetri.ganoff@hdsupply.com", "displayName": "demetri ganoff", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "demetri.ganoff@hdsupply.com", "key": "demetri.ganoff@hdsupply.com", "displayName": "demetri ganoff", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.1.3, 3.2.1.GA\r\nTitanium CLI 3.1.0, 3.2.1\r\niOS SDK 7.0.3", "comment": { "comments": [ { "id": "295355", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/5409\nTest code:\n{code}\nvar win = Titanium.UI.createWindow({\n\tbackgroundColor: 'white'\n});\n\nwin.add(Ti.UI.createWebView({\n\thtml: 'Call me',\n\thandlePlatformUrl: true\n}));\n\nwin.open();\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-03T22:14:18.000+0000", "updated": "2014-03-03T22:14:18.000+0000" }, { "id": "295386", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-03T23:10:30.000+0000", "updated": "2014-03-03T23:10:30.000+0000" }, { "id": "301383", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue.\r\nWorking fine.\r\n\r\n\r\nUsed the below code:\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nwin.add(Ti.UI.createWebView({\r\n html: 'Call me',\r\n handlePlatformUrl: true\r\n}));\r\n \r\nwin.open();\r\n{code}\r\n\r\nTest Environment:\r\nAppc-Studio:3.2.3.201404162038\r\nsdk:3.3.0.v20140417173316\r\nacs:1.0.14\r\nalloy:1.3.1\r\nnpm:1.3.2\r\ntitanium:3.2.3-beta\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Nexus5(v4.4.2),Iphone5(v7.1),Samsung Note(v2.3.6)\r\n\r\ntelephone links on webviews prompts user before making the call.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-18T07:07:52.000+0000", "updated": "2014-04-18T07:07:52.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }