Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3824

App crashes with latest airnotifier version

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_39_STABLE

      Description

      Hi, we are running the latest version of Airnotifier and our app using Moodle mobile 3.9.1 works fine with this, however using 3.9.4+ (we have tested 3.9.4 and 3.9.5) the app crashes.

       Here's a snippet from the stacktrace:

      07-12 15:42:13.808  1993  2153 D Push_FCMService: no locale found for key = title, error Value Moodle of type java.lang.String cannot be converted to JSONObject
      07-12 15:42:13.808  1993  2153 D Push_FCMService: key = notification
      07-12 15:42:13.809  1993  2153 W Bundle  : Key notification expected Bundle but value was a java.lang.String.  The default value <null> was returned.
      07-12 15:42:13.810  1993  2153 W Bundle  : Attempt to cast generated internal exception:
      07-12 15:42:13.810  1993  2153 W Bundle  : java.lang.ClassCastException: java.lang.String cannot be cast to android.os.Bundle
      07-12 15:42:13.810  1993  2153 W Bundle  : 	at android.os.Bundle.getBundle(Bundle.java:847)
      07-12 15:42:13.810  1993  2153 W Bundle  : 	at com.adobe.phonegap.push.FCMService.normalizeExtras(FCMService.java:275)
      07-12 15:42:13.810  1993  2153 W Bundle  : 	at com.adobe.phonegap.push.FCMService.onMessageReceived(FCMService.java:101)

      The offending code is located here: https://github.com/moodlemobile/phonegap-plugin-push/blob/master/src/android/com/adobe/phonegap/push/FCMService.java#L275

      Someone else appears to be having the same problem here: https://github.com/airnotifier/airnotifier/issues/237

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            alexmorris Alexander Morris
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: