mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +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/api": "workspace:*",
|
||||||
"@openstapps/collection-utils": "workspace:*",
|
"@openstapps/collection-utils": "workspace:*",
|
||||||
"@openstapps/core": "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",
|
"@types/dom-view-transitions": "1.0.1",
|
||||||
"capacitor-secure-storage-plugin": "0.9.0",
|
"capacitor-secure-storage-plugin": "0.9.0",
|
||||||
"cordova-plugin-calendar": "5.1.6",
|
"cordova-plugin-calendar": "5.1.6",
|
||||||
|
|||||||
@@ -75,10 +75,10 @@ export class AppComponent implements AfterContentInit {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (document.readyState === 'complete') {
|
if (document.readyState === 'complete') {
|
||||||
requestIdleCallback(this.hideSplash.bind(this));
|
this.hideSplash();
|
||||||
} else {
|
} else {
|
||||||
document.addEventListener('readystatechange', () => {
|
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 => {
|
async taskId => {
|
||||||
await Promise.all([this.postDifferencesNotification(), this.syncNativeCalendar()]);
|
await Promise.all([this.postDifferencesNotification(), this.syncNativeCalendar()]);
|
||||||
|
|
||||||
await BackgroundFetch.finish(taskId);
|
BackgroundFetch.finish(taskId);
|
||||||
|
},
|
||||||
|
async taskId => {
|
||||||
|
console.log('[BackgroundFetch] TIMEOUT:', taskId);
|
||||||
|
BackgroundFetch.finish(taskId);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -822,8 +822,8 @@ importers:
|
|||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/core
|
version: link:../../packages/core
|
||||||
'@transistorsoft/capacitor-background-fetch':
|
'@transistorsoft/capacitor-background-fetch':
|
||||||
specifier: 1.0.2
|
specifier: 5.1.1
|
||||||
version: 1.0.2(@capacitor/core@5.5.0)
|
version: 5.1.1(@capacitor/core@5.5.0)
|
||||||
'@types/dom-view-transitions':
|
'@types/dom-view-transitions':
|
||||||
specifier: 1.0.1
|
specifier: 1.0.1
|
||||||
version: 1.0.1
|
version: 1.0.1
|
||||||
@@ -6755,10 +6755,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
|
resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
|
|
||||||
/@transistorsoft/capacitor-background-fetch@1.0.2(@capacitor/core@5.5.0):
|
/@transistorsoft/capacitor-background-fetch@5.1.1(@capacitor/core@5.5.0):
|
||||||
resolution: {integrity: sha512-eF92oeLYg7cZNGtlUMq6nZH1Q0i3wIXyQKlsWRBlaSey/DhL+Ncv1//ejbH+FQ427bC+CT1PPAD/OrPsJeL7+g==}
|
resolution: {integrity: sha512-TwDVxFgnegCq5fPWG7Qy5Ws87enbBiZtnKI5Y96OpMn/BzUWyL4J6bRfx85OTNDO0MIk07u0YFHxYrzPETrWJA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@capacitor/core': ^4.0.0
|
'@capacitor/core': ^5.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@capacitor/core': 5.5.0
|
'@capacitor/core': 5.5.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|||||||
Reference in New Issue
Block a user