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

Android: App crash on receiving notification if app in background

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 6.3.0, Release 6.2.2
    • Fix Version/s: Release 7.0.0
    • Component/s: Android
    • Environment:

      SDK 6.3.0GA & SDK 6.2.0GA

      Description

      Issue Description

      In our application, we have push notification functionality. When the app is in background and a notification is sent from the dashboard, the notification is not adding to the notification tray instead the app is getting crashed saying “App has been stopped”. But when the app is in foreground, on receiving notification app is behaving as expected.

      Sample payload data:

       
      { 
      "alert": "test", 
      "title": “Appname”, 
      "vibrate": true, 
      "icon": "push_notification_icon", 
      "sound": "", 
      "badge": "", 
      "ClaimID": “123456”, 
      "UserID": “1234566”, 
      "ChannelName": “mychannel” 
      } 
      

      But when we remove the property “sound” from the payload data, app is not getting crashed even when the app is in background.

      Note: This issue is in Pixel (8.0.0 OS). In nexus(6.0.1 OS) and Samsung S4(4.4.2 OS) it is working fine.
      We are using SDK 6.3.0GA, CloudPush module : 4.0.3 and Cloud module : 3.2.11.

      Please download the test-case:
      https://drive.google.com/file/d/1yVJ-NkICtWDZQXgLyDWstPROiyMHC0Hm/view?usp=sharing

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                rramirez Ricardo Ramirez
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code