Add VisibilityService for managing app visibility state and connection recovery
- Introduce a new VisibilityService to handle application visibility state, including online/offline status and connection management. - Update DI container to register the new VisibilityService and integrate it into the base module. - Modify BaseService to include visibilityService as a dependency, ensuring proper initialization and error handling. - Enhance RelayHub to register with VisibilityService for improved connection management during visibility changes. - Refactor related components to utilize the new service, streamlining visibility handling across the application.
This commit is contained in:
parent
099c16abc9
commit
3e9c9bbdef
5 changed files with 588 additions and 60 deletions
|
|
@ -117,6 +117,9 @@ export const SERVICE_TOKENS = {
|
|||
// Payment services
|
||||
PAYMENT_SERVICE: Symbol('paymentService'),
|
||||
|
||||
// Visibility services
|
||||
VISIBILITY_SERVICE: Symbol('visibilityService'),
|
||||
|
||||
// Market services
|
||||
MARKET_STORE: Symbol('marketStore'),
|
||||
PAYMENT_MONITOR: Symbol('paymentMonitor'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue