android notification not showing when app background

Not showing notification when app is background

CordovaAirshipReceiver: Received push message. Alert: test2. posted notification: false

if app is opened i am getting below error

03-20 16:21:34.685 23439-23439/com.tsi.rtat I/CordovaAirshipReceiver: Received push message. Alert: test2. posted notification: false
03-20 16:21:34.685 23439-23439/com..rtat I/System.out: {}
03-20 16:21:34.685 23439-23439/com..rtat W/Bundle: Key google.ttl expected String but value was a java.lang.Integer. The default value was returned.
03-20 16:21:34.705 23439-23439/com.tsi.rtat W/Bundle: Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at android.os.BaseBundle.getString(BaseBundle.java:944)
at com.urbanairship.cordova.events.PushEvent.getEventData(PushEvent.java:70)
at com.urbanairship.cordova.UAirshipPlugin$2.onEvent(UAirshipPlugin.java:185)
at com.urbanairship.cordova.UAirshipPluginManager.notifyListener(UAirshipPluginManager.java:242)
at com.urbanairship.cordova.UAirshipPluginManager.pushReceived(UAirshipPluginManager.java:100)
at com.urbanairship.cordova.CordovaAirshipReceiver.onPushReceived(CordovaAirshipReceiver.java:69)
at com.urbanairship.AirshipReceiver.handlePushReceived(AirshipReceiver.java:105)
at com.urbanairship.AirshipReceiver.onReceive(AirshipReceiver.java:77)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2739)
at android.app.ActivityThread.access$2100(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1467)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5596)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Didn't find what you were looking for?

New post

Comments

1 comment

  • Hi Shanmugpriya,

    Thank you for writing in about your issue with Android push notifications.

    So we can better investigate this issue, could you please send over the information detailed in this article:

    Thank you. We look forward to your response!

    Comment actions Permalink
    0

Please sign in to leave a comment.