datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
273 stars 231 forks source link

Too long token in contactUriParams crashes application [Android] #112

Open enisit opened 6 years ago

enisit commented 6 years ago

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.

glocore commented 5 years ago

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

enisit commented 5 years ago

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