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

React native - StreamVideoRN.setPushConfig() setBackgroundMessageHandler conflict #1447

Open
1 of 3 tasks
bohdan145 opened this issue Jul 23, 2024 · 1 comment · May be fixed by #1542
Open
1 of 3 tasks

React native - StreamVideoRN.setPushConfig() setBackgroundMessageHandler conflict #1447

bohdan145 opened this issue Jul 23, 2024 · 1 comment · May be fixed by #1542
Assignees
Labels
bug Something isn't working react-native React Native SDK issues

Comments

@bohdan145
Copy link

Which package/packages do you use?

  • @stream-io/video-react-sdk
  • @stream-io/video-react-native-sdk
  • @stream-io/video-client

Describe the bug
In my app I use react-native-firebase to handle notifications logic
in my index.js I declare setBackgroundMessageHandler to handle background notification logic
But when I initialize StreamVideoRN.setPushConfig() it also creates its own setBackgroundMessageHandler, so my previous setBackgroundMessageHandler index.js logic does not work anymore.
Is it possible to preserve my original logic in setBackgroundMessageHandler and also use StreamVideoRN setBackgroundMessageHandler?

Version

  • SDK version: 0.9.2

Env:
Production

React Native

  • OS: android, ios
  • emulator and real device
@bohdan145 bohdan145 added the bug Something isn't working label Jul 23, 2024
@bohdan145 bohdan145 changed the title StreamVideoRN.setPushConfig() setBackgroundMessageHandler conflict React native - StreamVideoRN.setPushConfig() setBackgroundMessageHandler conflict Jul 23, 2024
@oliverlaz oliverlaz added the react-native React Native SDK issues label Jul 24, 2024
@oliverlaz
Copy link
Member

hi @bohdan145, thank you for reporting this issue. We'll take a look and we'll get back to you.
cc: @santhoshvai

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

Successfully merging a pull request may close this issue.

3 participants