{ "id": "113487", "key": "TIMOB-13738", "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": "15486", "description": "2013 Sprint 10 API", "name": "2013 Sprint 10 API", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-15T06:42:51.000+0000", "created": "2013-04-29T10:14:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.1.1", "regression" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:08.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": "*Problem description*\r\ne.cancelled in the facebook login event which was fired when the close button of the facebook authorize dialogue was clicked is not working any more in the new facebook module in the 3.1.0 Titanium SDK.\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar fb = require('facebook');\r\nfb.appid = FACEBOOK_APP_ID; // appid goes here\r\n\r\nfb.addEventListener('login', facebook_connect);\r\n\r\nfunction facebook_connect(e) {\r\n\tif (e.success) {\r\n\t\talert(\"Login Success!\");\r\n\t} else if (e.error) {\r\n\t\talert(\"Something went wrong\");\r\n\t} else if (e.cancelled) {\r\n\t\talert(\"Close button clicked\"); // Not working anymore\r\n\t}\r\n}\r\n\r\nwin.add(fb.createLoginButton({\r\n\ttop : 50,\r\n\tstyle : fb.BUTTON_STYLE_WIDE\r\n}));\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Facebook Module's e.cancelled state not working anymore", "creator": { "name": "neyyanraju", "key": "neyyanraju", "displayName": "Raju Neyyan", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "neyyanraju", "key": "neyyanraju", "displayName": "Raju Neyyan", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK 3.1.0 (Android)", "comment": { "comments": [ { "id": "249845", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.1 GA. Cancelled state is not called when closing the dialog, or when cancelling at \"App Y has already been authorized\" screen.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-01T23:07:36.000+0000", "updated": "2013-05-01T23:07:36.000+0000" }, { "id": "251859", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_modules/pull/114", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-14T18:21:10.000+0000", "updated": "2013-05-14T18:21:10.000+0000" }, { "id": "252055", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR to update zip in SDK: https://github.com/appcelerator/titanium_mobile/pull/4269\r\n3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4270", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-15T17:06:38.000+0000", "updated": "2013-05-15T17:26:22.000+0000" }, { "id": "254382", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified e.cancelled is firing with:\nMac OS 10.8.3\nSafari: 6.0.4\nXcode 4.6.2\nCLI: 3.1.1-alpha\nAlloy: 1.1.3-alpha\nAppcelerator Studio, build: 3.1.1.201305271814\nTitanium SDK version 3.1.1.v20130524180421\n\non:\nNexus 4 4.2.1\nNexus 10 4.2\nGalaxy S II 2.3.6", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-28T20:51:56.000+0000", "updated": "2013-05-28T20:51:56.000+0000" }, { "id": "258379", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Why are you making changes to the Facebook module code, and not updating the module version number? I am seeing new behavior with the module that was downloaded along with the 3.1.1 update, yet I can't rollback to the previous module since the new one is also 3.0.0! Please, whenever you update production code - update the version. You are breaking production code when you're not updating the module version numbers. Please make sure to have the previously released 3.0.0 module, and the new one, available under different version numbers. This needs to be fixed ASAP. Thanks.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-06-18T09:08:10.000+0000", "updated": "2013-06-18T09:08:10.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }