05-16-2023 10:53 AM
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?
Solved! Go to Solution.
08-03-2023 08:08 AM
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
08-04-2023 05:11 AM
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"
08-04-2023 08:15 AM
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.
08-07-2023 06:51 AM
If you can do a test with 2 physical devices, please ensure for each device: