-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
I am using startSmsHandling to listen for incoming SMS messages, and I want to stop listening when the component unmounts. However, calling stopSmsHandling() does not seem to stop the listener.
Even after calling stopSmsHandling() in the cleanup function, SMS reading continues when navigating within the app and receiving new messages.
Here is my cleanup function:
return () => {
try {
stopSmsHandling();
console.log('SMS listening stopped.');
} catch (error) {
console.error('Error removing SMS listener:', error);
}
};
How can I properly stop the SMS listener? Is there a known issue with stopSmsHandling()?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels