{ "id": "124233", "key": "AC-2484", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-01-10T17:28:53.000+0000", "created": "2013-12-27T16:36:03.000+0000", "labels": [ "3.2.0", "android", "sdk", "ti.cloudpush" ], "versions": [], "issuelinks": [], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:32.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Using: Ti.CloudPush Module Version 3.2.0\r\nLast used: Ti.CloudPush Module Version 2.3.2\r\n\r\nThe App will be Force Closed when Lock then Unlock the phone. On the Console when I debug, looks like this:\r\n\r\n{quote}\r\n\r\n[ERROR] : TiApplication: (main) [33375,66355] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to instantiate receiver ti.cloudpush.MQTTReceiver: java.lang.ClassNotFoundException: Didn't find class \"ti.cloudpush.MQTTReceiver\" on path: DexPathList[[zip file \"/system/framework/com.google.android.maps.jar\", zip file \"/data/app/com.mycom.myapp.apk\"],nativeLibraryDirectories=[/data/app-lib/com.mycom.myapp, /vendor/lib, /system/lib]]; Titanium 3.2.0,2013/12/20 10:57,d9182d6\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to instantiate receiver ti.cloudpush.MQTTReceiver: java.lang.ClassNotFoundException: Didn't find class \"ti.cloudpush.MQTTReceiver\" on path: DexPathList[[zip file \"/system/framework/com.google.android.maps.jar\", zip file \"/data/app/com.mycom.myapp.apk\"],nativeLibraryDirectories=[/data/app-lib/com.mycom.myapp, /vendor/lib, /system/lib]]\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:2400)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.access$1700(ActivityThread.java:135)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1272)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:136)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5017)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\n[ERROR] : TiApplication: \tat dalvik.system.NativeStart.main(Native Method)\r\n[ERROR] : TiApplication: Caused by: java.lang.ClassNotFoundException: Didn't find class \"ti.cloudpush.MQTTReceiver\" on path: DexPathList[[zip file \"/system/framework/com.google.android.maps.jar\", zip file \"/data/app/com.mycom.myapp.apk\"],nativeLibraryDirectories=[/data/app-lib/com.app/com.mycom.myapp, /vendor/lib, /system/lib]]\r\n[ERROR] : TiApplication: \tat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n[ERROR] : TiApplication: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:497)\r\n[ERROR] : TiApplication: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:457)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:2395)\r\n[ERROR] : TiApplication: \t... 10 more\r\n\r\n{quote}\r\n\r\n\r\nWhen I go back to older version (2.3.2) the app won't get force close any more", "attachment": [], "flagged": false, "summary": "Ti.CloudPush Version 3.2.0 get Force Close when Unlock Phone on Android 4.4", "creator": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "environment": "OS: Android 4.4\r\nDevice: Nexus 4\r\nTitanium SDK: 3.2.0\r\nTi.CloudPush 3.2.0\r\n", "comment": { "comments": [ { "id": "286215", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As of Release 3.2.0, the CloudPush module only supports Google Cloud Messaging (GCM) for push notifications. MQTT support is deprecated and support was removed in Release 3.2.0. Upgrade your application to use the GCM protocol.\n\nMQTT protocol support deprecation was announced back in August and it has finally been removed.\nhttp://www.appcelerator.com/blog/2013/08/android-push-notification-deprecating-mqtt-in-favor-of-gcm/\n\nPlease update your application to use GCM protocol and let us know if you run into an issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-30T04:55:24.000+0000", "updated": "2013-12-30T04:55:24.000+0000" }, { "id": "286369", "author": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "body": "I am using GCM not MQTT\nI have started build my app in TitaniumSDK 3.1\nI am using payload and push the Payload to Device by TokenDevice\n\n\n\t\t\t\t\t\t", "updateAuthor": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-31T16:51:17.000+0000", "updated": "2013-12-31T16:51:17.000+0000" }, { "id": "286444", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this ticket based on the latest feedback from the reporter.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-02T06:11:52.000+0000", "updated": "2014-01-02T06:11:52.000+0000" }, { "id": "287023", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi [~anh.nguyen] - If you delete the app from your device and reinstall it, do you still get this error?", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T19:09:29.000+0000", "updated": "2014-01-07T19:09:29.000+0000" }, { "id": "287025", "author": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "body": "Yes, I still get that error. \nI am now rollback to version 2.3.2. and waiting for a proposal to fix this bug. I saw many new features in 3.2.0 and really want to use those features", "updateAuthor": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-07T19:17:55.000+0000", "updated": "2014-01-07T19:17:55.000+0000" }, { "id": "287044", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you send me the contents of your \"app/build/android/AndroidManifest.xml\" file? Thank you.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T21:18:34.000+0000", "updated": "2014-01-07T21:18:34.000+0000" }, { "id": "287063", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~anh.nguyen] - It seems that something is hanging around from the older version of the module. To ensure that is not the case, please try the following:\n# Make sure that there is only one version of the module included in your `tiapp.xml`.\n# Delete the application from your device.\n# Do a clean build of your application. This means deleting the \"build\" folder and building your application.\n\nLet me know how it goes!", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T22:01:13.000+0000", "updated": "2014-01-07T22:01:13.000+0000" }, { "id": "287065", "author": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "body": "I have re-checked my Customized AndroidManifest.xml file and seen one property look like this:\r\n\r\nand this: \r\nI deleted them and now I do not get this error anymore. I don't know why they appear there but any way I fixed it and here is \"app/build/android/AndroidManifest.xml\" after deletion \r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\nThank you so much JonAlter\r\n", "updateAuthor": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-07T22:06:14.000+0000", "updated": "2014-01-07T22:32:58.000+0000" }, { "id": "287079", "author": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "body": "Hi Jon Alter, after I deleted 2 attributes that correspond to MQTTReceiver I did not see Group notification any more. Now all Notifications show in multiple Notifications.\nDo you know what could be the reason? \nAppreciate your help. ", "updateAuthor": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-07T22:45:30.000+0000", "updated": "2014-01-07T22:45:30.000+0000" }, { "id": "287142", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Oh there we go. Remove your custom AndroidManifest from your app so that it can generate a new one. Build the app once and then use the new manifest in \"build/android\" as the basis for your custom manifest.\n\nChanges where made to what the module needs in the manifest and the custom manifest is over riding that.\n\nYou're very welcome. Let me know how it goes.\n\n", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-08T01:40:40.000+0000", "updated": "2014-01-08T01:40:40.000+0000" }, { "id": "287242", "author": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "body": "Thank you, It works now", "updateAuthor": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-08T19:02:04.000+0000", "updated": "2014-01-08T19:02:04.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }