react-native-pjsip icon indicating copy to clipboard operation
react-native-pjsip copied to clipboard

Too long token in contactUriParams crashes application [Android]

Open enisit opened this issue 7 years ago • 2 comments

Hi,

I experienced the error that app just freeze on call screen and need to be force closed. After some debugging I figured out that token for FCM push notifications that i am sending to backend through contactUriParams header is causing the problem. If I remove token from header, it works ok, also if I send just half on token it works too. That means that token length is a problem. As far as I could notice it header length is less than 160 characters it works good, everything above that freezes the app, current token length is 170+ characters and it is getting longer and longer.

I would like to know is there a way to increase max length of this header, or any other way to pass token to backend. I followed Your demo app and saw that You are using same way to send token, and it works good for registration, but for some reason that header gets passed on each call as a localContactUri and when it's too long it freezes the screen.

enisit avatar Jun 22 '18 08:06 enisit

@enisit were you able to find a solution for this?

glocore avatar Jan 31 '19 18:01 glocore

@platonish I could not manage to send it through this header. I am sending token trough separate request in my app.

enisit avatar Feb 01 '19 09:02 enisit