cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Payload Error - Android Error

globalsoft_developer_jgv
Occasional Contributor

Hi!
I'm working with the Android SDK, it's an  inherited project 
I have the following error:
Payload is not a valid Sinch push payload SinchError[errorType=GENERIC, code=5001, message='', data={}]

 

But I don't understand the error. Can someone please help me understand the error?

13 REPLIES 13

Hello
Attached the requested information, I remain pending, thank you.

2023-08-01 17:29:26
7f68b97e-28e5-414c-ac6c-6822f9021348
App Call ended
150
100
CANCEL
NOANSWER

Roland_Ian
Employee
Employee

 

The call-id you gave me there, the only device that had a push token was the Android Emulator you are using.  The push token was sent and Google/firebase confirmed receipt of it.

 

Have you enabled Google Play services on the emulator as push will not work on it without it?

 

I have tested a call towards an Android Pixel 3 emulator (API 28) with Play services version 483592595 and push was received ok. 

 

If you use the push sample look in Logcat for these messages

 

2023-08-04 14:04:14.672 9525-10900/com.sinch.android.rtc.sample.push D/FcmListenerService: Got FCM message.
2023-08-04 14:04:14.673 9525-10900/com.sinch.android.rtc.sample.push I/NativeLibLoader: Sinch native libraries already loaded, returning early
2023-08-04 14:04:14.674 9525-10900/com.sinch.android.rtc.sample.push D/FcmListenerService: queryPushNotificationPayload() -> display name: User testuser_1
2023-08-04 14:04:14.674 9525-10900/com.sinch.android.rtc.sample.push D/FcmListenerService: queryPushNotificationPayload() -> call headers: {}
2023-08-04 14:04:14.674 9525-10900/com.sinch.android.rtc.sample.push D/FcmListenerService: queryPushNotificationPayload() -> remote user ID: testuser_1

 

 

The other two physical handset devices (I wont mention the makes here). Did not have push tokens associated with them so the clients were stopped.

 

Suggestion: Can you test a call with two physical devices with push as well?  It is good to do test push on actual physical handsets as well as the emulator. 

 

Also ensure you have the correct package name in your google-services.json, in the case of the samples its:

"package_name": "com.sinch.android.rtc.sample.push"

 

 

 

 

Roland-Ian Clothier, Developer Support Engineer

Hi.
The data they provide is from the last call that was made, since then no more have been possible, I just tried with 2 physical devices but it did not work and they were not registered in the call records panel.

Roland_Ian
Employee
Employee

If you can do a test with 2 physical devices, please ensure for each device:

  • You can provide the output via Android Logcat from the Sinch Client starting

 

Roland-Ian Clothier, Developer Support Engineer