{ "id": "149699", "key": "AC-412", "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": "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": "2015-11-11T22:51:30.000+0000", "created": "2015-07-15T03:51:59.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-01-06T19:29:41.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "App sometimes crash during startup when launched from the Android notification area.\r\n\r\nHow to reproduce\r\n- Make sure app is not running\r\n- Receive push notifications for app\r\n- Click on push notification in the Android notification area to launch the app.\r\n- (If another notification is received at the moment the app is launching, it seems to greatly increase the chance of a crash.)\r\n- App sometimes crashes\r\n\r\nCrash log:\r\nE/AndroidRuntime(10783): FATAL EXCEPTION: main\r\n\r\nE/AndroidRuntime(10783): Process: hk.com.beamstyle.snakehead, PID: 10783\r\n\r\nE/AndroidRuntime(10783): java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided\r\n\r\nE/AndroidRuntime(10783): \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:2856)\r\n\r\nE/AndroidRuntime(10783): \tat android.app.ActivityThread.access$1700(ActivityThread.java:156)\r\n\r\nE/AndroidRuntime(10783): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440)\r\n\r\nE/AndroidRuntime(10783): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\r\nE/AndroidRuntime(10783): \tat android.os.Looper.loop(Looper.java:157)\r\n\r\nE/AndroidRuntime(10783): \tat android.app.ActivityThread.main(ActivityThread.java:5872)\r\n\r\nE/AndroidRuntime(10783): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n\r\nE/AndroidRuntime(10783): \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n\r\nE/AndroidRuntime(10783): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)\r\n\r\nE/AndroidRuntime(10783): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)\r\n\r\nE/AndroidRuntime(10783): \tat dalvik.system.NativeStart.main(Native Method)\r\n\r\nE/AndroidRuntime(10783): Caused by: java.lang.RuntimeException: Application context not provided\r\n\r\nE/AndroidRuntime(10783): \tat com.appcelerator.aps.Settings.props(Settings.java:58)\r\n\r\nE/AndroidRuntime(10783): \tat com.appcelerator.aps.Settings.useSingleCallback(Settings.java:83)\r\n\r\nE/AndroidRuntime(10783): \tat com.appcelerator.aps.APSCloudPush.processCallbackIfInstantiated(APSCloudPush.java:651)\r\n\r\nE/AndroidRuntime(10783): \tat com.appcelerator.aps.IntentReceiver.onReceive(IntentReceiver.java:72)\r\n\r\nE/AndroidRuntime(10783): \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:2845)\r\n\r\nE/AndroidRuntime(10783): \t... 10 more\r\n\r\nE/ActivityManager( 719): App crashed! Process: hk.com.beamstyle.snakehead\r\n", "attachment": [], "flagged": false, "summary": "App sometimes crash when launched from notification area", "creator": { "name": "andreas-beamstyle", "key": "andreas-beamstyle", "displayName": "Andreas Hyden", "active": true, "timeZone": "Asia/Hong_Kong" }, "subtasks": [], "reporter": { "name": "andreas-beamstyle", "key": "andreas-beamstyle", "displayName": "Andreas Hyden", "active": true, "timeZone": "Asia/Hong_Kong" }, "environment": "LG P880 Android 4, HTC Android 5\r\nBuilt on Titanium SDK 3.5.1.GA", "comment": { "comments": [ { "id": "361520", "author": { "name": "davidfischer", "key": "davidfischer", "displayName": "David Fischer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm seeing the same {{java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided}} error. I do not have a CloudPush \"callback\" eventListener so it is not a bug in the event listener. I'm merely relying on the user clicking the push notification to launch the app. It is very intermittent but I'm seeing 5-10 reports a day in the Play store.\r\n\r\nHowever, there is a key difference between launching the app with a push notification click vs. clicking on the app icon in the launcher and that is that the former does not use \"android:clearTaskOnLaunch\" (from the manifest) which will essentially restart the app when it is launched. As a result, the app attempts to resume when launched. I have had a lot of problems with resuming Android apps on Titanium and that's why I use \"android:clearTaskOnLaunch\". I'm guessing this is a problem with a failed resume. I'll try to verify.", "updateAuthor": { "name": "davidfischer", "key": "davidfischer", "displayName": "David Fischer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-27T22:54:13.000+0000", "updated": "2015-08-27T22:54:13.000+0000" }, { "id": "364980", "author": { "name": "thomas", "key": "thomas", "displayName": "Thomas Cheng", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello there,\r\n\r\nI wonder if there are any updates on this? Basically I'm almost guaranteed to receive a crash when my app is running in the background for a long time, and then I receive a push notification, I click on the push notification and resume the app.\r\n\r\nLike what Andreas said, the chance of crash increases significantly when I do the following:\r\n- Let my app run in background (Press Android Home key)\r\n- Then I receive some other push notification from a completely different unrelated app (eg. Whatsapp, let's say I receive a message or something)\r\n- Then I receive a push notification from my app\r\n- Then I click on the push notification icon for my app.\r\n\r\nThanks guys!\r\n\r\nCheers,\r\nThomas\r\n", "updateAuthor": { "name": "thomas", "key": "thomas", "displayName": "Thomas Cheng", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-25T07:46:46.000+0000", "updated": "2015-09-25T07:46:46.000+0000" }, { "id": "365000", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI tested the issue you reported. But we did not reproduce this issue as a bug. App did not crash when we launch the app from the notification area. I tested this using the TiSDK 5.0.0 GA ,Appcelerator Studio, build: 4.3.0.201509151348 and Nexus7 (Android 5.1.1)\r\nI recommend you upgrade TiSDK to the latest build and let us know if you get the error again.\r\n\r\nThanks", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-25T15:15:57.000+0000", "updated": "2015-11-11T22:51:50.000+0000" }, { "id": "373935", "author": { "name": "davidfischer", "key": "davidfischer", "displayName": "David Fischer", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "davidfischer", "key": "davidfischer", "displayName": "David Fischer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-06T19:29:41.000+0000", "updated": "2016-01-06T19:29:41.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }