Spinner not dismissing after switching between multiple apps and tabs

Dear Ionic Community,

I am facing an issue with the spinner in my Ionic application. The problem occurs when I switch between multiple apps and tabs on my device or in Web application. The spinner, which is intended to indicate loading or processing, does not dismiss itself properly, leading to an undesirable user experience.

Any guidance or assistance in resolving this matter would be greatly appreciated.

Thank you in advance for your help.

Best regards,