unitree-czk / capacitor-udp

A udp plugin for capacitor!
https://www.npmjs.com/package/capacitor-udp
21 stars 14 forks source link

ipv6 index out of bounds #4

Closed maciejmatuszak closed 4 years ago

maciejmatuszak commented 4 years ago

I am testing on android 7 (Samsung Galaxy tab) UdpPlugin.create The socket.ipv6Address.getHostAddress(); returned in string without "%" character and subsequent calls failed with index out of bound. This is the only call I tested so far. I would suggest also call.reject("create error", e); format for reporting errors. This way you will get Java side stack trace and it is much easier to trace the problem.

unitree-czk commented 4 years ago

Thank you. I don't have a Samsung. That's very helpful!!