{ "id": "81604", "key": "TIMOB-5752", "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": "12081", "description": "", "name": "Sprint 2011-41", "archived": true, "released": true, "releaseDate": "2011-10-17" }, { "id": "12470", "description": "", "name": "Release 1.7.4", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T14:04:56.000+0000", "created": "2011-10-14T07:55:13.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_platform", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "13460", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "62959", "key": "TIMOB-2327", "fields": { "summary": "Android: Froyo ID is Non-Unique", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-05T14:04:56.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": "h3.Problem\r\nTi.Platform.id not unique. The devices that never have the unique value have the plaform ID's in the form of: 9627bb65-f0e2-4a3a-9cd5-dedb6ebee34a\r\nDevices that have the unique value have platform ID's that look like: ee8ed86d7db57ce\r\n\r\nh3.Reproducible Steps\r\n1. Run the sample code on Simulator with APIs Android 2.2\r\n2. Run the sample code one more time with the same Simulator - the Ti.Platform.id value would be different\r\n\r\nh3.Sample Code\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nwin1.open();\r\n\r\nalert(Ti.Platform.id);\r\n{code}\r\n\r\nh3.Associated HelpDesk Ticket\r\nhttp://appc.me/c/APP-295184", "attachment": [ { "id": "23721", "filename": "platform1.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-14T07:55:13.000+0000", "size": 146142, "mimeType": "image/png" }, { "id": "23722", "filename": "platform2.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-14T07:55:13.000+0000", "size": 146138, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Ti.Platform.id not unique", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 1.7.2 & 1.8.0.v20111013161411\r\nSimulator with APIs Android 2.2\r\n", "comment": { "comments": [ { "id": "169288", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "if an application is uninstalled, its ID is destroyed with it. IDs are only generated if there is no platform id available from device, or if the known non-unique Id mentioned in the other ticket is returned from the device.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-14T08:29:09.000+0000", "updated": "2011-10-14T08:29:09.000+0000" }, { "id": "169292", "author": { "name": "ziggamon2", "key": "ziggamon2", "displayName": "Sergej Kotliar", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Two things. \r\n\r\nFirst of all, it changes regardless of the application being uninstalled. I have logs that prove it, 10s between them. It's probably not possible for a user to uninstall and reinstall an app in 10s. \r\n\r\nSecond, Urban Airship manages to remember the user correctly. \r\n\r\nSo obviously, you could learn a thing or two from them and handle this as well. \r\n\r\nClosing this as \"invalid\" is absolutely unacceptable, this is a show-stopper bug!", "updateAuthor": { "name": "ziggamon2", "key": "ziggamon2", "displayName": "Sergej Kotliar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-14T08:40:50.000+0000", "updated": "2011-10-14T08:40:50.000+0000" }, { "id": "169293", "author": { "name": "ziggamon2", "key": "ziggamon2", "displayName": "Sergej Kotliar", "active": true, "timeZone": "America/Los_Angeles" }, "body": "See the stuff I posted in the helpdesk\r\n\r\nhttps://support.appcelerator.com/tickets/APP-295184", "updateAuthor": { "name": "ziggamon2", "key": "ziggamon2", "displayName": "Sergej Kotliar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-14T08:41:07.000+0000", "updated": "2011-10-14T08:41:07.000+0000" }, { "id": "169315", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The reproduction sequence never exhibited the problem on the 2.2 emulator by exiting and re-running the app. However it does appear if you reboot the emulator. The problem as stated in the ticket is vague and has information that doesn't apply to the problem. The invalid state was a signal back to the creator of the ticket that they needed to look into it and validate it before reopening it.\r\n\r\nAn {{invalid}} ticket in JIRA does not in any way imply that your helpdesk problem is not valid. If we had resolved it {{Won't Fix}} then it might have deserved that response.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-14T13:19:31.000+0000", "updated": "2011-10-14T13:19:31.000+0000" }, { "id": "169336", "author": { "name": "ziggamon2", "key": "ziggamon2", "displayName": "Sergej Kotliar", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I understand that you need to get the message across to educate your helpdesk staff on how you prefer to file bugs. But remember that behind the helpdesk staff is a customer of yours, that's paying serious money for your support and is currently stuck with a very serious bug. And in that situation, after spending a week in the \"premium\" service to get a bug across at all, seeing it \"CLOSED\" for whatever reason doesn't exactly calm the feeling of our application depending on a platform that has such a fundamental problem.\r\n\r\nI'm not here to argue. I just want to be able to make our app work somehow, our business kind of depends on it. \r\n\r\nHoping for a speedy fix, and please make it stick this time. Please. Look at how UA made their generation code and try to make something similar, that sticks between restarts and preferably even between reinstalls on the same device. \r\n\r\nThanks in advance. ", "updateAuthor": { "name": "ziggamon2", "key": "ziggamon2", "displayName": "Sergej Kotliar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-15T10:44:33.000+0000", "updated": "2011-10-15T10:44:33.000+0000" }, { "id": "169839", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.4.v20111019130614 with TiStudio 1.0.6.201110171921\r\nDroid 2.2.2 and Motorola tab 3.2 - has unique ID\r\nEmulator 2.2 - keeps the same platform ID as long as it is not uninstalled, once the application is uninstalled and reinstalled a new platform ID will be displayed\r\nEmulator 2.3.3 - has unique ID\r\nKeeping open to confirm with 1.8 before closing ", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T10:30:42.000+0000", "updated": "2011-10-20T12:21:05.000+0000" }, { "id": "169842", "author": { "name": "ziggamon2", "key": "ziggamon2", "displayName": "Sergej Kotliar", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem isn't that the ID is not unique (like the title misleadingly says), but rather that it changes every time the user opens the app. Has that been doublechecked? I don't have access to any devices that showed the problem so can not test.", "updateAuthor": { "name": "ziggamon2", "key": "ziggamon2", "displayName": "Sergej Kotliar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T10:37:56.000+0000", "updated": "2011-10-20T10:37:56.000+0000" }, { "id": "172511", "author": { "name": "byf", "key": "byf", "displayName": "Zdenek Farana", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Samsung Galaxy S, Android 2.3.3, Mobile SDK 1.8.0v20111108103105: The Ti.Platform.id is not consistent across app launches.", "updateAuthor": { "name": "byf", "key": "byf", "displayName": "Zdenek Farana", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-14T09:17:34.000+0000", "updated": "2011-11-14T09:17:34.000+0000" }, { "id": "173841", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the following:\r\nWith 1.8.0.1.v20111122105459 and v8 compile:\r\nDroid 1 (2.2.2): Platform id in form \"62aa69827255df19\" persists through launch and relaunch. Persists through uninstall/reinstall.\r\nGalaxy Tab (2.3.4): Platform id in form \"22f0a4da0d208e68\" persists through launch and relaunch. Persists through uninstall/reinstall.\r\nLG Experience (2.2.2): Platform id in form \"f61ccf96-11d5-4565-aadf-dfd359e033f9\" persists through launch and relaunch. DOES NOT persist through app uninstall/reinstall.\r\n\r\nverified rhino compile on 1.8.0.1 with Droid 1 matches observations with v8 compile.\r\n\r\nWith 1.8.0.v20111108103105 and v8 compile:\r\nDroid 1 (2.2.2): Platform id in form \"62aa69827255df19\" persists through launch and relaunch. Persists through uninstall/reinstall.\r\nGalaxy Tab (2.3.4): Platform id in form \"22f0a4da0d208e68\" persists through launch and relaunch. Persists through uninstall/reinstall.\r\nLG Experience (2.2.2): Platform id in form \"d6b6a4c0-a730-4c90-8642-1f2f6a9a8e0c\" persists through launch and relaunch. DOES NOT persist through app uninstall/reinstall.\r\n\r\nAdditional note: On one test on the LG device, I did not clear app data and uninstall. Then I installed the app built with a new SDK and the previous id appeared. Only after clearing data and uninstalling did a new ID appear.\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-22T18:19:54.000+0000", "updated": "2011-11-22T18:19:54.000+0000" }, { "id": "175634", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112080131

\r\nTi Mob SDK 1.8.0.1.v20111209102124 v8/rhino

\r\nOSX Lion\r\n
Nexus S OS 2.3.6\r\n\r\nExpected behavior of platform.id persisting through relaunch/uninstall is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-09T16:33:28.000+0000", "updated": "2011-12-09T16:33:28.000+0000" }, { "id": "178192", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopen to add label", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T13:29:23.000+0000", "updated": "2012-01-05T13:29:23.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }