HomeX-It / pusher-websocket-flutter

An unofficial Flutter plugin that wraps pusher-websocket-java on Android and pusher-websocket-swift on iOS
MIT License
30 stars 22 forks source link

Invalid signature: Expected HMAC SHA256 Error #20

Open KAIMonmoy opened 4 years ago

KAIMonmoy commented 4 years ago

I am trying to subscribe to a private room, but getting this invalid signature error.

Invalid signature: Expected HMAC SHA256 hex digest of 8910.66062685:private-5eb108e1110adb4c7da27e34, but got 64ea520ef7a27ed2604d36768c514e2ba38fe78273edfba77878b77585bb90fd

I've read this (https://support.pusher.com/hc/en-us/articles/360019306433-I-receive-Invalid-signature-Expected-HMAC-SHA256-error-what-is-that-) article and tried a few changes in the backend but it is not working.

MisterJimson commented 4 years ago

The library only forwards calls between Flutter and the Pusher SDK. We don't do anything special here so I would investigate with the native SDKs if possible.

spiritinlife commented 4 years ago

@KAIMonmoy i had similar issues with private rooms. I have fixed my issues by upgrading the library to pusherSwift v7.2.

Can you test if it works for you using this fork https://github.com/spiritinlife/pusher-websocket-flutter/ ?

If that is the case I could prepare a PR.