{ "id": "97908", "key": "TIMOB-10120", "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": "14158", "description": "Sprint 2012-20 Core", "name": "Sprint 2012-20 Core", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-10-04T23:23:21.000+0000", "created": "2012-07-24T13:57:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2013-03-13T15:05:23.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": "*Expected behavior*\r\nWhen you download a Titanium app from Google Play on the device, it should launch just fine, without any errors.\r\n\r\n*Actual behavior*\r\nWhen you download the app, it throws the following error: https://img.skitch.com/20120724-8jwhabpui82hbr965qj1y44qm1.png\r\n\r\n*Steps to reproduce*\r\n-Download a Titanium app from Google Play.\r\n-Open the app from within Google Play, it should force restart the app.\r\n-Here you might get the error, if not, uninstall and try again until you get the same error.\r\n\r\n*Notes*\r\n-This only happens sometimes, this isn't consistently reproducible. You will need to give it a few tries (keep installing/opening/uninstalling) until you manage to reproduce it.\r\n-Only tested on a Samsung Galaxy S2 running 2.3.6 with TiSDK 2.1.0GA.\r\n-HD ticket: http://support-admin.appcelerator.com/display/APP-243998", "attachment": [], "flagged": false, "summary": "Android: 'Uncaught RangeError' when you download & open app from Google Play directly", "creator": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "environment": "Samsung Galaxy S2 (2.3.6)\r\nTiSDK 2.1GA", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "216960", "author": { "name": "mbelkin", "key": "mbelkin", "displayName": "Michael Belkin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I also keep experiencing this one. One guess is that it may have to do with an error when parsing a JSON string from httpClient. ", "updateAuthor": { "name": "mbelkin", "key": "mbelkin", "displayName": "Michael Belkin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T21:41:32.000+0000", "updated": "2012-08-29T21:41:32.000+0000" }, { "id": "222176", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think whatever is happening must clearly be related to the \"restart\" that is forced after installing from the Play store. We improved the messy restart stuff in 2.1.2, so I would recommend the following:\n\n# Put this in your tiapp.xml (cf. [docs|http://docs.appcelerator.com/titanium/2.1/index.html#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-PropertiestoworkaroundAndroidbugs2373and5277]):\n{code}\ntrue\n{code}\n# Compile against 2.1.3.GA.\n\nNote that you can always test what is going to happen when the app is downloaded from Play Store without needing to actually use the Play Store. The trick is that when the installer app on the phone runs, and -- as its final step -- gives you the option to open the app it just installed, and go ahead and click Open, that is actually different than what happens when you start an app from the normal application menu/screen. To emulate the behavior that occurs when installing and opening from Play Store, you need to get the installer app to run on the phone (i.e., using adb install is not enough). You can do this as follows:\n\n# Make sure no version of the app is on the device (uninstall it if needed.)\n# Copy the .apk file to the sdcard like this: {{adb -d push myapp.apk /sdcard/myapp.apk}}.\n# Then, on the device, use a file manager app like [Astro|https://play.google.com/store/apps/details?id=com.metago.astro&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5tZXRhZ28uYXN0cm8iXQ..] to browse your sdcard, find the .apk and open it.\n# You'll be asked if you want to install the app. Do so, and the Installer app will run, just like if you downloaded from Play Store.\n", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-04T23:21:46.000+0000", "updated": "2012-10-04T23:21:46.000+0000" }, { "id": "229724", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as won't fix", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T00:09:45.000+0000", "updated": "2012-12-04T00:09:45.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }