GetStream / stream-video-js

GetStream JavaScript Video SDK
https://getstream.io/video/sdk/
Other
65 stars 22 forks source link

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

Open bohdan145 opened 1 month ago

bohdan145 commented 1 month ago

Which package/packages do you use?

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

Env: Production

React Native

oliverlaz commented 1 month ago

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