Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25869

Android: Sending Push results in a crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.2
    • Fix Version/s: Release 7.3.0
    • Component/s: Android
    • Labels:
    • Environment:

      SDK 7.0.2.GA
      Android API-Level 26

      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) will cause a crash

      {
      "android":

      { "title": "Example", "alert": "Sample alert", "icon": "little_star", "badge": "+2", "sound": "door_bell", "vibrate": true }

      ,
      "category": "sampleCategory",
      "custom_field_1": "Arrow Push Services Rocks!",
      "custom_field_2": "Hi Push"
      }

      The crash is as follows....

      03-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)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3072)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at android.app.ActivityThread.-wrap18(ActivityThread.java)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6186)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
      03-14 16:06:15.020 19235 19235 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              paulatstepup Paul Ryan
              Reviewer:
              Gary Mathews
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6243
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code