Service, Tabs and variables

I made an ionic 5 application with Tabs.
Each Tab calls the same service.
The problem concerns the scope of the variables.

Each tab seems to create a new instance of the service, and the values ​​of the variables are not preserved.

How do I make the service instance unique for all tabs?

You posted this in the Capacitor subforum, so I have no clue what framework you’re using. The answer to your question is likely going to be framework-dependent. If you’re using Angular, then make sure that you do NOT include services in a providers stanza in individual components; doing that will cause the symptoms you describe.