Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error in ios voip Push events setup #1298

Closed
2 tasks
Buwaneka-Sumanasekara opened this issue Mar 26, 2024 · 3 comments
Closed
2 tasks

Getting error in ios voip Push events setup #1298

Buwaneka-Sumanasekara opened this issue Mar 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Buwaneka-Sumanasekara
Copy link

Buwaneka-Sumanasekara commented Mar 26, 2024

Which package/packages do you use?

  • @stream-io/video-react-native-sdk^0.5.10
  • @stream-io/video-client 118.0.1

Describe the bug
Getting error "undefined is not a function". This is getting even after client is initiated.

This is the client ref I'm receiving when client initiation. It doesn't have 'addVoipDevice function'

{"addDevice": [Function anonymous], "call": [Function anonymous], "connectAnonymousUser": [Function anonymous], "connectionPromise": {"_40": 2, "_55": null, "_65": 0, "_72": [[Handler], [Handler]]}, "createGuestUser": [Function anonymous], "disconnectUser": [Function anonymous], "edges": [Function anonymous], "eventHandlersToUnregister": [], "getDevices": [Function anonymous], "logLevel": "warn", "logger": [Function result], "off": [Function anonymous], "on": [Function anonymous], "onRingingCall": [Function anonymous], "queryCalls": [Function anonymous], "readOnlyStateStore": {"calls$": {"source": [BehaviorSubject]}, "connectedUser$": {"source": [BehaviorSubject]}, "getCurrentValue": [Function getCurrentValue]}, "removeDevice": [Function anonymous], "streamClient": {"_buildWSPayload": [Function anonymous], "_enrichAxiosOptions": [Function anonymous], "_getConnectionID": [Function anonymous], "_getToken": [Function anonymous], "_hasConnectionID": [Function anonymous], "_isUsingServerAuth": [Function anonymous], "_logApiError": [Function anonymous], "_logApiRequest": [Function anonymous], "_logApiResponse": [Function anonymous], "_normalizeDate": [Function anonymous], "_sayHi": [Function anonymous], "_setToken": [Function anonymous], "_setUser": [Function anonymous], "_user": {"custom": [Object], "id": "53f87a43-616f-4524-a636-7ed55e5dd448", "image": "", "name": "Ranil Wickkama sinha ", "type": "authenticated"}, "anonymous": false, "axiosInstance": [Function wrap], "baseURL": "https://video.stream-io-api.com/video", "browser": true, "clientID": "53f87a43-616f-4524-a636-7ed55e5dd448--519d802f-a562-491f-ab60-f42fe567808f", "closeConnection": [Function anonymous], "connect": [Function anonymous], "connectAnonymousUser": [Function anonymous], "connectGuestUser": [Function anonymous], "connectUser": [Function anonymous], "connectionIdPromise": {"_40": 0, "_55": null, "_65": 0, "_72": null}, "consecutiveFailures": 0, "createAbortControllerForNextRequest": [Function anonymous], "createToken": [Function anonymous], "defaultWSTimeout": 15000, "defaultWSTimeoutWithFallback": 6000, "delete": [Function anonymous], "devToken": [Function anonymous], "disconnectUser": [Function anonymous], "dispatchEvent": [Function anonymous], "doAxiosRequest": [Function anonymous], "errorFromResponse": [Function anonymous], "get": [Function anonymous], "getAuthType": [Function anonymous], "getLocationHint": [Function anonymous], "getUserAgent": [Function anonymous], "handleResponse": [Function anonymous], "insightMetrics": {"connectionStartTimestamp": 1711433511225, "instanceClientId": "712eeaa1-e3a2-403d-9300-88d708bc841f", "wsConsecutiveFailures": 0, "wsTotalFailures": 0}, "key": "2tnpeuwhsnpp", "listeners": {}, "locationHint": {"_40": 0, "_55": null, "_65": 0, "_72": null}, "logger": [Function result], "nextRequestAbortController": null, "node": false, "off": [Function anonymous], "on": [Function anonymous], "openConnection": [Function anonymous], "options": {"logLevel": "warn", "logger": [Function result], "persistUserOnConnectionFailure": true, "timeout": 5000, "warmUp": false, "withCredentials": false}, "patch": [Function anonymous], "persistUserOnConnectionFailure": true, "post": [Function anonymous], "put": [Function anonymous], "rejectConnectionId": [Function anonymous], "resolveConnectionId": [Function anonymous], "secret": undefined, "setBaseURL": [Function anonymous], "setUserAgent": [Function anonymous], "setUserPromise": {"_40": 1, "_55": null, "_65": 0, "_72": [Handler]}, "tokenManager": {"getToken": [Function anonymous], "isStatic": [Function anonymous], "loadToken": [Function anonymous], "loadTokenPromise": [Promise], "reset": [Function anonymous], "setTokenOrProvider": [Function anonymous], "tokenProvider": [Function tokenProvider], "tokenReady": [Function anonymous], "type": "provider", "user": [Object], "validateToken": [Function anonymous]}, "user": {"custom": [Object], "id": "53f87a43-616f-4524-a636-7ed55e5dd448", "image": "", "name": "Ranil Wickkama sinha ", "type": "authenticated"}, "userAgent": "stream-video-javascript-client-browser-0.6.3-video-react_native-sdk-0.5.8", "userID": "53f87a43-616f-4524-a636-7ed55e5dd448", "wsBaseURL": "wss://video.stream-io-api.com/video", "wsConnection": {"_buildUrl": [Function anonymous], "_errorFromWSEvent": [Function anonymous], "_log": [Function anonymous], "_setHealth": [Function anonymous], "_setupConnectionPromise": [Function anonymous], "authenticationSent": false, "client": [Circular], "connectionCheckTimeout": 35000, "consecutiveFailures": 0, "isConnecting": true, "isDisconnected": false, "isHealthy": false, "isResolved": false, "lastEvent": null, "onclose": [Function anonymous], "onerror": [Function anonymous], "onlineStatusChanged": [Function anonymous], "onmessage": [Function anonymous], "onopen": [Function anonymous], "pingInterval": 25000, "requestID": "6dc29e4c-d094-4599-9c58-2461e446345d", "scheduleConnectionCheck": [Function anonymous], "scheduleNextPing": [Function anonymous], "setClient": [Function anonymous], "totalFailures": 0, "wsID": 1}, "wsPromise": {"_40": 1, "_55": null, "_65": 0, "_72": [Handler]}}, "writeableStateStore": {"callsSubject": {"_value": [Array], "closed": false, "currentObservers": null, "hasError": false, "isStopped": false, "observers": [Array], "thrownError": null}, "connectedUserSubject": {"_value": undefined, "closed": false, "currentObservers": null, "hasError": false, "isStopped": false, "observers": [Array], "thrownError": null}, "findCall": [Function anonymous], "getCurrentValue": [Function getCurrentValue], "registerCall": [Function anonymous], "setCalls": [Function anonymous], "setConnectedUser": [Function anonymous], "setCurrentValue": [Function setCurrentValue], "unregisterCall": [Function anonymous]}}

Screenshot 2024-03-26 at 10 57 02

@Buwaneka-Sumanasekara Buwaneka-Sumanasekara added the bug Something isn't working label Mar 26, 2024
@santhoshvai
Copy link
Member

@Buwaneka-Sumanasekara could you paste your package.json please

@santhoshvai
Copy link
Member

@Buwaneka-Sumanasekara could you please let us know if you are still getting this issue? it is not reproducible from our side

@oliverlaz
Copy link
Member

Closed because of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants