{ "id": "159184", "key": "TIMOB-23129", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-07-10T13:41:33.000+0000", "created": "2016-03-31T18:55:48.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "alloy", "facebook" ], "versions": [ { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "issuelinks": [], "assignee": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2017-07-10T13:41:33.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": "Hi,\r\nFacebook module with latest SDK throwing error in Alloy on android. I tested this using the SDK 5..2.1 , Facbook Module 5.0.0 , alloy 1.8.2 and android 5.0.2. Facebook module working fine in classic project. This is an alloy issue. \r\n\r\napp/alloy.js:\r\n{code}\r\nAlloy.Globals.Facebook = require('facebook');\r\n{code}\r\napp/views/index.xml:\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n\r\n{code}\r\napp/controllers/index.js:\r\n{code}\r\n$.fbLike.objectID = \"http://www.facebook.com/appcelerator\";\r\nif (OS_ANDROID) {\r\n $.index.fbProxy = Alloy.Globals.Facebook.createActivityWorker({lifecycleContainer: $.index});\r\n}\r\n$.index.open();\r\n{code}\r\nError Log :\r\n{code}\r\n[ERROR] : TiApplication: (main) [14,644] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.; Titanium 5.2.1,2016/03/18 22:51,23e1c7d\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2411)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2474)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.access$800(ActivityThread.java:144)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1359)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:155)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5696)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:372)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)\r\n[ERROR] : TiApplication: Caused by: Unexpected CallbackManager, please use the provided Factory.\r\n[ERROR] : TiApplication: \tat com.facebook.login.LoginManager.registerCallback(LoginManager.java:128)\r\n[ERROR] : TiApplication: \tat com.facebook.login.widget.LoginButton.registerCallback(LoginButton.java:445)\r\n[ERROR] : TiApplication: \tat facebook.LoginButtonView.(LoginButtonView.java:40)\r\n[ERROR] : TiApplication: \tat facebook.LoginButtonProxy.createView(LoginButtonProxy.java:34)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:258)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:638)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)\r\n[ERROR] : TiApplication: \tat android.app.Activity.performCreate(Activity.java:5958)\r\n[ERROR] : TiApplication: \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)\r\n{code}\r\n*Environment:*\r\n1. Android Devices: Nexus 7 (android 6.0) ,HTC (android 5.0.2)\r\n2. Facebook 5.0.0\r\n3. Operating System: Mac OS X, Version 10.10.5\r\n4. Node.js Version 0.10.37\r\n5. Titanium SDK Version 5.2.1.GA\r\nThanks", "attachment": [], "flagged": false, "summary": "Android : Facebook Module throwing error in Alloy", "creator": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "subtasks": [], "reporter": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "environment": null, "comment": { "comments": [ { "id": "381212", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested the issue with the SDK 5.2.1.GA. I was able to reproduce the issue. This is a valid bug. Module version is 5.0.0.\r\n\r\n*Environment*\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\n\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n\r\nTitanium SDK\r\n SDK Version = 5.2.1.GA\r\n SDK Path = /Users/gsl001/Library/Application Support/Titani\r\num/mobilesdk/osx/5.2.1.GA\r\n Target Platform = android\r\n{code}\r\n\r\nRegards,\r\nSharif", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-31T19:13:55.000+0000", "updated": "2016-04-21T15:35:36.000+0000" }, { "id": "382130", "author": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am also seeing this as well", "updateAuthor": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T21:03:43.000+0000", "updated": "2016-04-07T21:03:43.000+0000" }, { "id": "423768", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\nWe have been unable to reproduce this issue with latest SDK 6.1.1.GA. So far we have been unable to reproduce this issue. Please add the following code in *app/controllers/index.js*\r\n{code}\r\n Alloy.Globals.Facebook.initialize();\r\n{code}\r\n\r\nEnvironment:\r\n1. Android Devices: Nexus 7 (Android 6.0).\r\n2. Facebook 6.2.0\r\n3. Operating System: Mac OS X, Version 10.10.5\r\n4. Node.js Version 0.10.37\r\n5. Titanium SDK Version 6.1.1.GA\r\n\r\n", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-07-10T13:40:47.000+0000", "updated": "2017-07-10T13:40:47.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }