|
|
@ -66,13 +66,13 @@ export class CapacitorPlatformService implements PlatformService { |
|
|
|
return this.initializationPromise; |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
// Start initialization
|
|
|
|
this.initializationPromise = this._initialize(); |
|
|
|
try { |
|
|
|
await this.initializationPromise; |
|
|
|
} catch (error) { |
|
|
|
logger.error( |
|
|
|
"[CapacitorPlatformService] Initialize method failed:", |
|
|
|
"[CapacitorPlatformService] Initialize database method failed:", |
|
|
|
error, |
|
|
|
); |
|
|
|
this.initializationPromise = null; // Reset on failure
|
|
|
|