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

Android: When custom sound is used the app crashes and the device stops receiving notifications

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      *Hello everyone,

      We have recently came across this bug. When custom sound used in Android the app crashes and the device stops receiving notifications.

      Do you have any solution on that matter? Thank you in advance!*

      [ERROR] : TiApplication: (main) [10869,132969] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.GCMReceiver: android.os.FileUriExposedException: link/RM.wav exposed beyond app through Notification.sound; Titanium 6.3.0,2017/10/31 18:13,undefined

      [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.GCMReceiver: android.os.FileUriExposedException: link/RM.wav exposed beyond app through Notification.sound

      [ERROR] : TiApplication: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3060)

      [ERROR] : TiApplication: at android.app.ActivityThread.-wrap18(ActivityThread.java)

      [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1584)

      [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)

      [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:160)

      [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:6200)

      [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method)

      [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:874)

      [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:764)

      [ERROR] : TiApplication: Caused by: android.os.FileUriExposedException: link/RM.wav exposed beyond app through Notification.sound

      [ERROR] : TiApplication: at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)

      [ERROR] : TiApplication: at android.net.Uri.checkFileUriExposed(Uri.java:2346)

      [ERROR] : TiApplication: at android.app.NotificationManager.notifyAsUser(NotificationManager.java:300)

      [ERROR] : TiApplication: at android.app.NotificationManager.notify(NotificationManager.java:284)

      [ERROR] : TiApplication: at android.app.NotificationManager.notify(NotificationManager.java:268)

      [ERROR] : TiApplication: at com.appcelerator.aps.APSCloudPush.showTrayNotification(APSCloudPush.java:523)

      [ERROR] : TiApplication: at com.appcelerator.aps.APSCloudPush.receivePayload(APSCloudPush.java:253)

      [ERROR] : TiApplication: at com.appcelerator.aps.GCMReceiver.onReceive(GCMReceiver.java:30)

      [ERROR] : TiApplication: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3053)

      [ERROR] : TiApplication: ... 8 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emerriman Eric Merriman
                Reporter:
                andreas.pingas Andreas Pingas
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code