- Users use mobile app, login and open the public chat channel( Channel A)
- Users open chat in the browser and login with the same account they did at the step 1
- Users send message to the public chat channel ( Channel A) in the browser.
- Users get their message in the both app and web
Current result: Users cant see the message in their app which they typed in the browser.
Expected result: Users can see the message in their app which they type in the broswer.
My mobile app has been setting websocket successfully and it is able to get the event “posted” thanks to Websocket API.
But if you log in with the same account in in both app and web, my websocket just got the data with “channel_viewed” event instead of “posted” when I create a new post by calling mattermost/api./v4/posts
The strange thing that when i debug the web, it’s still can get the “posted” event and insead of “channel_viewed” event like my app. Because the web can get the “posted” event so they can get the “message” field and display it on the channel.
Until now, i just can get the message from another person ( not me) with websocket api
What i am doing wrong here ? Please help me !
Thanks in advance !