{ "id": "171167", "key": "TIMOB-25798", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-02-22T21:58:39.000+0000", "created": "2018-02-22T21:55:54.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-02-22T21:58:39.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Steps to reproduce:\r\n1. Use the code below in your app.js:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Click Me'\r\n});\r\n\r\nbtn.addEventListener('click', function(e) {\r\n\r\n console.log('Ti.Geolocation.hasLocationPermissions() ' + Ti.Geolocation.hasLocationPermissions());\r\n\r\n console.log('Ti.Geolocation.locationServicesEnabled ' + Ti.Geolocation.locationServicesEnabled);\r\n \r\n alert('locationServicesEnabled = ' + Ti.Geolocation.locationServicesEnabled);\r\n\r\n if (Ti.Geolocation.hasLocationPermissions()) {\r\n getCurrentPosition();\r\n\r\n } else {\r\n Ti.Geolocation.requestLocationPermissions(null, getCurrentPosition);\r\n }\r\n});\r\n\r\nfunction getCurrentPosition() {\r\n Ti.Geolocation.getCurrentPosition(function(e) {\r\n console.log('Ti.Geolocation.getCurrentPosition() ' + JSON.stringify(e));\r\n });\r\n}\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n2. Make sure you do not have ti.playservices module in your app.\r\n3. Build the app on Android device/emulator. (I saw the logs on Nexus 6P Android 8.0 & Android 4.4.4 emulator).\r\n4. After app launch tap click me button.\r\n5. Allow location permissions.\r\n6. Check the logs.\r\n\r\nh5.Actual results:\r\n1. These info logs are seen : https://gist.github.com/lokeshchdhry/bc231d92727852c4a74f8f37e3465d53\r\n\r\nh5. Expected results:\r\n1. The info logs should not be logged.", "attachment": [], "flagged": false, "summary": "Android: Unnecessary info logs in console when trying to use geolocation methods with no Ti.playservices", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 5.0.0.201712081732\r\nSDK Ver: 7.1.0 local build for https://github.com/appcelerator/titanium_mobile/pull/9840\r\nOS Ver: 10.13.2\r\nXcode Ver: Xcode 9.2\r\nAppc NPM: 4.2.12\r\nAppc CLI: 7.0.2\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.11.0\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 5 --- Android 6.0.1\r\n ⇨ google Nexus 6P --- Android 8.0.0", "comment": { "comments": [ { "id": "434793", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing, duplicate of TIMOB-25797", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-22T21:58:39.000+0000", "updated": "2018-02-22T21:58:39.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }