Access token is not valid when init a Websocket on android device

For some reason, we need a simple chat embedded in our app which is developed with react-native, so we try to use the websocket client which is imported from ‘mattermost-redux/client/websocket_client’ to connect to MM server. When we use the access token, it is only OK in ios and fails in android platform, while use session token, both platforms are all OK. Actually, we have our own user model and just want an user to connect MM server via access token without login any more. So is the access token supported for websocket connection to MM serevr on android platform?

can you provide access to the source code or at least publish the relevant part of the code with some server and app logs?