-
Notifications
You must be signed in to change notification settings - Fork 0
/
capacitor.config.ts
49 lines (47 loc) · 1.53 KB
/
capacitor.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'io.github.erudition.Minder',
appName: 'Minder',
webDir: 'dist',
server: {
allowNavigation: ["erudition.github.io"], // don't add "localhost" here
// url: "https://localhost/", // default is https://localhost, but setting this to ANYTHING prevents navigation to localhost...
//url: "https://erudition.github.io/minder-preview/Erudition/Minder/branch/master/",
hostname: 'minder-localhost',
// can't be localhost because service worker is blocked in android webview. https://stackoverflow.com/a/76373851/8645412 can't be erudition.github.io or else online requests will become local requests.
androidScheme: 'https',
cleartext: true,
//errorPath: "error.html",
},
plugins: {
SplashScreen: {
launchShowDuration: 200,
launchAutoHide: true,
launchFadeOutDuration: 200,
backgroundColor: "#ffffffff",
androidSplashResourceName: "splash",
androidScaleType: "CENTER_CROP",
showSpinner: true,
androidSpinnerStyle: "large",
iosSpinnerStyle: "small",
spinnerColor: "#999999",
//splashFullScreen: true,
//splashImmersive: true,
layoutName: "launch_screen",
useDialog: false,
},
Toast: {},
LocalNotifications: {
smallIcon: "alpha_logo",
// iconColor: "#488AFF",
// sound: "beep.wav",
},
App: {},
Clipboard: {},
Storage: {},
CapacitorCookies: {
enabled: true
}
}
};
export default config;