{ "id": "171323", "key": "TIMOB-25869", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-24T23:57:33.000+0000", "created": "2018-03-14T16:12:16.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "gcm", "push" ], "versions": [ { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-06-22T16:49:36.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": "sending a push notification from platform.axway.com to an android device using an android specific failure causes the app to crash when in the background. e.g. using the following payload (taken from [here|http://docs.appcelerator.com/platform/latest/#!/guide/Sending_and_Scheduling_Push_Notifications-section-src-43298780_SendingandSchedulingPushNotifications-androidAndroid-specificpayloadfields]) will cause a crash\r\n\r\n{\r\n \"android\": {\r\n \"title\": \"Example\",\r\n \"alert\": \"Sample alert\",\r\n \"icon\": \"little_star\",\r\n \"badge\": \"+2\",\r\n \"sound\": \"door_bell\",\r\n \"vibrate\": true\r\n },\r\n \"category\": \"sampleCategory\",\r\n \"custom_field_1\": \"Arrow Push Services Rocks!\",\r\n \"custom_field_2\": \"Hi Push\"\r\n} \r\n\r\nThe crash is as follows....\r\n\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.GCMReceiver: java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:3072)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat android.app.ActivityThread.-wrap18(ActivityThread.java)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat android.os.Looper.loop(Looper.java:154)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat android.app.ActivityThread.main(ActivityThread.java:6186)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat java.lang.reflect.Method.invoke(Native Method)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)\r\n03-14 16:06:15.020 19235 19235 E AndroidRuntime: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)", "attachment": [], "flagged": false, "summary": "Android: Sending Push results in a crash", "creator": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "environment": "SDK 7.0.2.GA\r\nAndroid API-Level 26", "comment": { "comments": [ { "id": "435592", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there! It looks like an issue in the configuration of your notification, not Titanium itself. See the error:\r\n{quote}\r\nInvalid notification (no valid small icon): Notification(pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)\r\n{quote}\r\nYou can fix it by adding the icon to your payload or via the [{{icon}} property|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Notification-property-icon] when being using in notifications triggered from the app.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-14T17:53:04.000+0000", "updated": "2018-03-14T17:53:04.000+0000" }, { "id": "435626", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "[~paulatstepup], Did you manage to follow as suggested earlier?", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-03-15T05:32:22.000+0000", "updated": "2018-03-15T05:32:22.000+0000" }, { "id": "435629", "author": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "body": "see the above payload - the icon property is present", "updateAuthor": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "created": "2018-03-15T07:40:19.000+0000", "updated": "2018-03-15T07:40:19.000+0000" }, { "id": "435631", "author": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "body": "Also, I only get this error if I send via ACS, I don't get the error if I send directly to GCM ", "updateAuthor": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "created": "2018-03-15T07:46:13.000+0000", "updated": "2018-03-15T07:46:13.000+0000" }, { "id": "435634", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey [~paulatstepup], thanks for your feedback! I thought it needs the extension suffix, but likely it doesn't. Checking with [~ybanev] if he knows some details! In the meantime, please add your environment (TiSDK-version, Android version) as its impossible to validate this right now.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-15T08:58:30.000+0000", "updated": "2018-03-15T08:59:57.000+0000" }, { "id": "435636", "author": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "body": "as requested...\r\nappc version 7.0.2\r\nti sdk 7.0.2.GA\r\ntarget sdk 26\r\nmin sdk 21\r\nandroid build tools 26.0.3\r\n\r\nerror seen on Android 7.1 and Android 8.1 devices (not tested on any others)\r\n\r\nPS I have retried using the icon property in the android object and in the top level object. It made no difference", "updateAuthor": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "created": "2018-03-15T09:08:17.000+0000", "updated": "2018-03-15T09:08:17.000+0000" }, { "id": "435848", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "Ti.cloudpush: https://github.com/appcelerator-modules/cloudpush/pull/39 \r\naps_sdk: https://github.com/appcelerator/aps_sdk/pull/310", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-03-22T15:09:01.000+0000", "updated": "2018-03-22T15:16:09.000+0000" }, { "id": "438642", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in ti.cloudpush 5.1.2.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-22T16:49:31.000+0000", "updated": "2018-06-22T16:49:31.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }