Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-4759

ClassCastException for google.sent_time key

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • None

    Description

      User on mailing list did report his Cordova app is crashing when receiving push notificaition with version 3.0.x of the plugin.
      http://lists.jboss.org/pipermail/aerogear-users/2016-August/000892.html

      provided user stack-trace:

      08-05 12:32:23.203: W/Bundle(14698): Key google.sent_time expected String but value was a java.lang.Long.  The default value <null> was returned.
      08-05 12:32:23.203: W/Bundle(14698): Attempt to cast generated internal exception:
      08-05 12:32:23.203: W/Bundle(14698): java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
      08-05 12:32:23.203: W/Bundle(14698):    at android.os.BaseBundle.getString(BaseBundle.java:923)
      08-05 12:32:23.203: W/Bundle(14698):    at org.jboss.aerogear.cordova.push.Message.<init>(Message.java:46)
      08-05 12:32:23.203: W/Bundle(14698):    at org.jboss.aerogear.cordova.push.NotificationMessageHandler.createNotification(NotificationMessageHandler.java:66)
      08-05 12:32:23.203: W/Bundle(14698):    at org.jboss.aerogear.cordova.push.NotificationMessageHandler.onMessage(NotificationMessageHandler.java:55)
      08-05 12:32:23.203: W/Bundle(14698):    at org.jboss.aerogear.android.unifiedpush.RegistrarManager$2.run(RegistrarManager.java:177)
      08-05 12:32:23.203: W/Bundle(14698):    at java.lang.Thread.run(Thread.java:818)
      

      Attachments

        Activity

          People

            edewit1@redhat.com Erik Jan de Wit
            mwessend@redhat.com Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: