{ "id": "133539", "key": "AC-1201", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-08-25T23:42:42.000+0000", "created": "2014-07-22T16:59:19.000+0000", "labels": [ "TCSupportTriage", "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:34.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "Unable to start app in Android 4.4.2 emulator but 4.2.2 work without exception. Gapps installed on both avd.\r\n\r\n{noformat}\r\n FATAL EXCEPTION: main\r\n Process: com.myapp, PID: 2336\r\n java.lang.RuntimeException: Unable to start receiver com.appcelerator.cloudpush.PushBroadcastReceiver: java.lang.NullPointerException: PushType is NONE!\r\n \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:2426)\r\n \tat android.app.ActivityThread.access$1700(ActivityThread.java:135)\r\n \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1272)\r\n \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n \tat android.os.Looper.loop(Looper.java:136)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5017)\r\n \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\n \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\n\tat dalvik.system.NativeStart.main(Native Method)\r\n Caused by: java.lang.NullPointerException: PushType is NONE!\r\n\tat com.appcelerator.cloudpush.CCPushService.ifEnabled(CCPushService.java:240)\r\n\tat com.appcelerator.cloudpush.PushBroadcastReceiver.onReceive(PushBroadcastReceiver.java:59)\r\n \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:2419)\r\n\t... 10 more\r\n{noformat}", "attachment": [ { "id": "49943", "filename": "log.txt", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2014-07-22T16:59:19.000+0000", "size": 37938, "mimeType": "text/plain" } ], "flagged": false, "summary": "Unable to start receiver com.appcelerator.cloudpush.PushBroadcastReceiver", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Mac OS X 10.9.4, Genymotion and SDK AVD, Titanium SDK 3.3.0.v20140711123603, Android 4.4.2", "comment": { "comments": [ { "id": "316602", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi, \r\n\r\nWould you please provide us the test case for your problem. That will be really helpful.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-08-01T06:09:53.000+0000", "updated": "2014-08-01T06:09:53.000+0000" }, { "id": "317265", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "I forgot include my commonjs module that contains subscription code. Without subscription code will exception thrown.\r\nSubscription code :\r\n\r\n{code:javascript}\r\nif (Ti.Platform.osname == 'android') {\r\n var CloudPush = require('ti.cloudpush');\r\n\r\n var Cloud = require('ti.cloud');\r\n Cloud.debug = true;\r\n\r\n CloudPush.debug = true;\r\n CloudPush.focusAppOnPush = false;\r\n \r\n CloudPush.showTrayNotification = true;\r\n CloudPush.showTrayNotificationsWhenFocused = true;\r\n CloudPush.showAppOnTrayClick = true;\r\n\r\n CloudPush.retrieveDeviceToken({\r\n success : function(e) { \r\n CloudPush.enabled = true;\r\n\r\n Ti.API.info('retrieved device token: ' + e.deviceToken);\r\n Ti.App.Properties.setString('pushNotification.deviceToken', e.deviceToken);\r\n },\r\n error : function(e) {\r\n Ti.API.error(e.error);\r\n }\r\n });\r\n \r\n CloudPush.addEventListener('callback', function(evt) { \r\n Ti.API.info('New push message: ' + JSON.stringify(evt)); \r\n Ti.App.fireEvent('app:CloudPush.callback', evt);\r\n });\r\n \r\n CloudPush.addEventListener('trayClickLaunchedApp', function(evt) { \r\n Ti.App.fireEvent('app:CloudPush.trayClickLaunchedApp', evt);\r\n });\r\n \r\n CloudPush.addEventListener('trayClickFocusedApp', function(evt) { \r\n Ti.App.fireEvent('app:CloudPush.trayClickFocusedApp', evt);\r\n });\r\n\r\n}\r\n{code}", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2014-08-06T11:03:20.000+0000", "updated": "2014-08-06T11:03:20.000+0000" }, { "id": "317822", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "May be no difference between 4.4.2 and 4.2.2. On second emulator app may already get message.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2014-08-09T10:42:25.000+0000", "updated": "2014-08-09T10:42:25.000+0000" }, { "id": "320236", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Closed by customer's last comment. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-25T23:42:42.000+0000", "updated": "2014-08-25T23:42:42.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }