Message Notification Exception

when send message to another user by fcm as you say in your implantation

the out put is: Exception:

2021-01-12 12:08:33.409 32155-32303/com.cometchat.pro.android.pushnotification W/AbstractXMPPConnection: Connection closed with error
org.jivesoftware.smack.SmackException: Parser got END_DOCUMENT event. This could happen e.g. if the server closed the connection without sending a closing stream element
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1148)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPConnection.java:937)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:952)
at java.lang.Thread.run(Thread.java:919)

I do all things as:
1- enable fcm push-notification form my account
2- run this app https://github.com/cometchat-pro/android-java-chat-push-notification-app
3- Modify APP_ID and AUTH_KEY and REGION same my account.
4- Add google-services.json in app directory

Hi @mickdans2020,

Can you please try to send a push notification directly from firebase console and help us to know if you receive that push notification in app.

Please check below documentation link for reference.

Note - You need to add our sample app in your firebase project to make it work. Also the server key under Push Notification Settings in CometChat Dashboard is same as server key under Cloud Messaging Section in Firebase Console.

I sent test data==>> k=kafor, t=jemy and i receive it

2021-01-13 10:04:35.696 10341-10958/com.cometchat.pro.android.pushnotification D/MyFirebaseService: remoteMessage.getData(): {k=kafor, t=jemy}

I sent test data==>> k=kafor, t=jemy and i receive it

2021-01-13 10:04:35.696 10341-10958/com.cometchat.pro.android.pushnotification D/MyFirebaseService: remoteMessage.getData(): {k=kafor, t=jemy}

@mickdans2020,

Can you please check the version in the Push Notification Settings from the CometChat Dashboard.

i use both, v1 + v2

i used v2 only the same exception