{ "id": "109853", "key": "TIMOB-13078", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-20T20:40:21.000+0000", "created": "2013-02-19T09:44:29.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "events", "location", "pause", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-20T20:40:21.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": "h2. Problem description\r\n\r\nWhen a webview's website requests location access, an alert message shows up, where the user can either allow or disallow sending location information to the website. This alert causes the \"pause\" event to be fired, but after closing the alert, no \"resume\" event is fired.\r\n\r\nh2. Steps to reproduce\r\n\r\nUse the following code; click on the location link in the home page to activate the message.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nTi.App.addEventListener('resume', function() {\r\n\tTi.API.info('resumed');\r\n});\r\n\r\n\r\nTi.App.addEventListener('pause', function() {\r\n\tTi.API.info('paused');\r\n});\r\n\t\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar webview = Ti.UI.createWebView({\r\n\turl: \"http://www.google.com\"\r\n});\r\n\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code} \r\n\r\n\r\nh2. Logs\r\nLog output from the device (through xcode -> organizer -> device console):\r\n{code:title=log output|borderStyle=solid}\r\nFeb 19 10:36:44 my-iPhone amfid[1351] : Feb 19 10:36:44 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]\r\nFeb 19 10:36:44 my-iPhone kernel[0] : launchd[1350] Builtin profile: container (sandbox)\r\nFeb 19 10:36:44 my-iPhone kernel[0] : launchd[1350] Container: /private/var/mobile/Applications/0AB3FFB0-AF36-4009-969B-6AF8C2637120 (sandbox)\r\nFeb 19 10:36:44 my-iPhone my-App[1350] : [DEBUG] Reading stylesheet from: /var/mobile/Applications/0AB3FFB0-AF36-4009-969B-6AF8C2637120/my-App.app/stylesheet.plist\r\nFeb 19 10:36:44 my-iPhone my-App[1350] : [INFO] my-App/1.0 (3.0.2.v20130215190201.5a77fe7)\r\nFeb 19 10:36:44 my-iPhone my-App[1350] : [DEBUG] Analytics is enabled = YES\r\nFeb 19 10:36:44 my-iPhone my-App[1350] : [DEBUG] Loading: /var/mobile/Applications/0AB3FFB0-AF36-4009-969B-6AF8C2637120/my-App.app/app.js, Resource: app_js\r\nFeb 19 10:36:45 my-iPhone backboardd[52] : CoreAnimation: updates deferred for too long\r\nFeb 19 10:36:45 my-iPhone SpringBoard[68] : CoreAnimation: failed to receive fence reply: 10004003\r\nFeb 19 10:36:45 my-iPhone backboardd[52] : CoreAnimation: timed out fence 24187\r\nFeb 19 10:36:45 my-iPhone backboardd[52] : CoreAnimation: failed to send fence reply: 10000003\r\nFeb 19 10:36:45 my-iPhone my-App[1350] : [DEBUG] Application booted in 750.191033 ms\r\nFeb 19 10:36:45 my-iPhone my-App[1350] : [DEBUG] New scheme: \r\nFeb 19 10:36:47 my-iPhone my-App[1350] : [DEBUG] Firing app event: pause\r\nFeb 19 10:36:47 my-iPhone my-App[1350] : [INFO] paused\r\nFeb 19 10:36:49 my-iPhone locationd[41] : Location icon should now be in state 'Active'\r\nFeb 19 10:36:49 my-iPhone kbd[57] : -[TIXPCDataTransport _handleForPurpose:withReplyBlock:] couldn't get data source for purpose=__TIRDTAB\r\nFeb 19 10:36:49 my-iPhone backboardd[52] : CoreAnimation: timed out fence 22cab\r\nFeb 19 10:36:49 my-iPhone SpringBoard[68] : CoreAnimation: failed to receive fence reply: 10004003\r\nFeb 19 10:36:49 my-iPhone backboardd[52] : CoreAnimation: failed to send fence reply: 10000003\r\nFeb 19 10:36:50 my-iPhone awdd[1353] : libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary\r\nFeb 19 10:36:50 my-iPhone awdd[1353] : CoreLocation: CLClient is deprecated. Will be obsolete soon.\r\nFeb 19 10:36:51 my-iPhone backboardd[52] : CoreAnimation: timed out fence 2445b\r\nFeb 19 10:36:51 my-iPhone SpringBoard[68] : CoreAnimation: failed to receive fence reply: 10004003\r\nFeb 19 10:36:52 my-iPhone my-App[1350] : CoreAnimation: failed to receive fence reply: 10004003\r\n{code}\r\n\r\nIn the middle of the log output, the pause event is fired, but no resume is fired afterwards.\r\n\r\n", "attachment": [ { "id": "35619", "filename": "IMG_0043.PNG", "author": { "name": "fletschge", "key": "fletschge", "displayName": "Florian Bühlmann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-19T09:44:29.000+0000", "size": 276314, "mimeType": "image/png" } ], "flagged": false, "summary": "WebView: Pause event fired but resume doesn't fire.", "creator": { "name": "fletschge", "key": "fletschge", "displayName": "Florian Bühlmann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "fletschge", "key": "fletschge", "displayName": "Florian Bühlmann", "active": true, "timeZone": "Europe/Berlin" }, "environment": "ios 6.0.1 (real device, iPhone 4S).", "comment": { "comments": [ { "id": "422393", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T20:40:21.000+0000", "updated": "2017-06-20T20:40:21.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }