mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 12:02:53 +00:00
fix: iOS app not starting
This commit is contained in:
committed by
Thea Schöbl
parent
8b5b4c765b
commit
66712bdd24
@@ -87,7 +87,7 @@
|
||||
"@openstapps/api": "workspace:*",
|
||||
"@openstapps/collection-utils": "workspace:*",
|
||||
"@openstapps/core": "workspace:*",
|
||||
"@transistorsoft/capacitor-background-fetch": "1.0.2",
|
||||
"@transistorsoft/capacitor-background-fetch": "5.1.1",
|
||||
"@types/dom-view-transitions": "1.0.1",
|
||||
"capacitor-secure-storage-plugin": "0.9.0",
|
||||
"cordova-plugin-calendar": "5.1.6",
|
||||
|
||||
@@ -75,10 +75,10 @@ export class AppComponent implements AfterContentInit {
|
||||
});
|
||||
|
||||
if (document.readyState === 'complete') {
|
||||
requestIdleCallback(this.hideSplash.bind(this));
|
||||
this.hideSplash();
|
||||
} else {
|
||||
document.addEventListener('readystatechange', () => {
|
||||
if (document.readyState === 'complete') requestIdleCallback(this.hideSplash.bind(this));
|
||||
if (document.readyState === 'complete') this.hideSplash();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,11 @@ export class ScheduleSyncService {
|
||||
async taskId => {
|
||||
await Promise.all([this.postDifferencesNotification(), this.syncNativeCalendar()]);
|
||||
|
||||
await BackgroundFetch.finish(taskId);
|
||||
BackgroundFetch.finish(taskId);
|
||||
},
|
||||
async taskId => {
|
||||
console.log('[BackgroundFetch] TIMEOUT:', taskId);
|
||||
BackgroundFetch.finish(taskId);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user