{ "id": "171832", "key": "TIMOB-26151", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-06-30T10:01:46.000+0000", "created": "2018-06-23T13:44:08.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "regression" ], "versions": [ { "id": "20099", "name": "Release 7.2.0", "archived": false, "released": true, "releaseDate": "2018-06-14" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-11-03T10:38:42.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": "I just tried upgrading to Ti 7.2.0.GA and found that Ti.Platform.id is returning null on Android. It works when reverting back to 7.1.1.GA. And it works on iOS.\r\n\r\nWhen using 7.1.1.GA `alert(Ti.Platform.id);` returns a string (as expected).\r\n\r\nWhen using 7.2.0.GA `alert(Ti.Platform.id);` returns \"null\".\r\n\r\nGiven 7.2.0 looks like it was mostly about GDPR, could it have been pulled out inadvertently? Or does the documentation need updating (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Platform-property-id)? Or am I missing something?", "attachment": [], "flagged": false, "summary": "Ti.Platform.id not working on Android in 7.2.0.GA (works on 7.1.1.GA)", "creator": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "environment": "Testing on a Moto G5Plus Running Android 7.", "closedSprints": [ { "id": 1045, "state": "closed", "name": "2018 Sprint 13 SDK", "startDate": "2018-06-17T20:47:13.621Z", "endDate": "2018-07-01T20:47:00.000Z", "completeDate": "2018-07-02T18:40:05.029Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "438651", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I am able to reproduce the issue for Android with SDK 7.2.0.GA. This is a valid issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-06-24T13:22:35.000+0000", "updated": "2018-06-24T13:22:35.000+0000" }, { "id": "438652", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Works fine on my phone:\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({});\r\n\r\nwin.addEventListener(\"open\",function(){\r\n\talert(Ti.Platform.id);\r\n})\r\nwin.open();\r\n{code}\r\n\r\n*Output*: String (my id)\r\n\r\nTi SDK 7.2.0.GA\r\nPhone: HTC A9 (7.0)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-24T13:25:45.000+0000", "updated": "2018-06-24T13:25:45.000+0000" }, { "id": "438657", "author": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "body": "Hmmm. If I create a fresh project it works for me too. If I put it in my existing project it does not. Obviously, something is not playing nice. \r\n\r\nI quickly tried with a fresh Alloy project. Worked.\r\nI also tried a fresh project with the same uses-sdk, uses-feature, and uses-permission as in my main project that is not working. Worked.\r\n\r\nMight be a module causing it??? I will report back later when I have time to go through and rule things out by the process of elimination.\r\n", "updateAuthor": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "created": "2018-06-25T04:21:26.000+0000", "updated": "2018-06-25T04:21:26.000+0000" }, { "id": "438667", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "[~raefa] You can check if enabling/disabling analytics for the project in tiapp.xml has an effect on that behavior. This node:\r\n{code:java}\r\ntrue\r\n{code}\r\n\r\nUpdate: I was able to reproduce the described issue with 7.2.0.GA", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-06-25T10:34:32.000+0000", "updated": "2018-06-25T10:45:24.000+0000" }, { "id": "438689", "author": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "body": "@Yordan Banev That was it. I too was able to replicate it if I turned analytics off.", "updateAuthor": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "created": "2018-06-25T22:42:32.000+0000", "updated": "2018-06-25T22:42:32.000+0000" }, { "id": "438818", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10008\r\n7_3_X: https://github.com/appcelerator/titanium_mobile/pull/10141", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-06-28T11:24:10.000+0000", "updated": "2018-06-28T11:32:24.000+0000" }, { "id": "438936", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in SDK Version {{7.3.0.v20180628132121}} and SDK Version: {{7.4.0.v20180702110619}}.\r\n\r\n*FR Passed (Test steps)*\r\n# Created an application with the following code\r\n{code:java}\r\nvar win = Ti.UI.createWindow(),\r\n\tbutton = Ti.UI.createButton({title: 'Get Info'});\r\nbutton.addEventListener('click', function () {\r\n\talert('Address: ' + Ti.Platform.address + '\\n' +\r\n\t\t'Architecture: ' + Ti.Platform.architecutre + '\\n' +\r\n\t\t'Available Memory: ' + Ti.Platform.availableMemory + '\\n' +\r\n\t\t'Battery Level: ' + Ti.Platform.batteryLevel + '\\n' +\r\n\t\t'Battery Monitoring: ' + Ti.Platform.batteryMonitoring + '\\n' +\r\n\t\t'Battery State: ' + Ti.Platform.batteryState + '\\n' +\r\n\t\t'Id: ' + Ti.Platform.id + '\\n' +\r\n\t\t'Id for Advertising: ' + Ti.Platform.identifierForAdvertising + '\\n' +\r\n\t\t'Id for Vendor: ' + Ti.Platform.identifierForVendor + '\\n' +\r\n\t\t'Is AdTracking enabled: ' + Ti.Platform.isAdvertisingTrackingEnabled + '\\n' +\r\n\t\t'Locale: ' + Ti.Platform.locale + '\\n' +\r\n\t\t'Mac address: ' + Ti.Platform.macaddress + '\\n' +\r\n\t\t'Manufacturer: ' + Ti.Platform.manufacturer + '\\n' +\r\n\t\t'Model: ' + Ti.Platform.model + '\\n' +\r\n\t\t'Name: ' + Ti.Platform.name + '\\n' +\r\n\t\t'Netmask: ' + Ti.Platform.netmask + '\\n' +\r\n\t\t'OS name: ' + Ti.Platform.osname + '\\n' +\r\n\t\t'OS type: ' + Ti.Platform.ostype + '\\n' +\r\n\t\t'Processor count: ' + Ti.Platform.processorCount + '\\n' +\r\n\t\t'Runtime: ' + Ti.Platform.runtime + '\\n' +\r\n\t\t'Username: ' + Ti.Platform.username + '\\n' +\r\n\t\t'Version: ' + Ti.Platform.version);\r\n});\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n# Set Analytics in the Tiapp.xml to false\r\n {{false}}\r\n# Ran the application\r\n# Pressed {{get info}}\r\n# Application no longer crashed and information was shown\r\n\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4\r\nPixel XL (8.1.0)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13\r\nNode.js Version: 8.9.1\r\nXcode 9.2\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-02T19:11:34.000+0000", "updated": "2018-07-02T19:12:03.000+0000" }, { "id": "443250", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This regression has resurfaced in the 7.5.0 RC 7.5.0.v20181102122228 with the same behavior related to set to false.", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-03T10:38:42.000+0000", "updated": "2018-11-03T10:38:42.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }