twilio / twilio-voice-react-native

Other
74 stars 29 forks source link

IOS don't get notification when application is killed #434

Closed oleksiiSevrukovRedvike closed 1 week ago

oleksiiSevrukovRedvike commented 3 weeks ago

Issue

Pre-submission Checklist

Description

I don't get call notification when application is killed. I used await voice.initializePushRegistry() and export const voice = Object.freeze(new Voice())

Expected Behavior

Notification should appear when application is killed and tap on it should launch application

Actual Behavior

Notification has not appeared when application is killed

Reproduction Frequency

It appears every time

Software and Device Information

Please complete the following information.

bobiechen-twilio commented 3 weeks ago

Hi @oleksiiSevrukovRedvike It looks like you are running into similar issue here: Please check out the suggestions in #369 and see if the issue is resolved after applying the fixes.

oleksiiSevrukovRedvike commented 2 weeks ago

hi @bobiechen-twilio thanks for your suggestion, looks like the problem was with new Voice initialization, I've added useMemo for new Voice as it was in example and it works

mhuynh5757 commented 1 week ago

Hi @oleksiiSevrukovRedvike glad to hear that you issue is resolved. I will close this issue for now, please reopen the issue or file another one if you encounter the issue again.