WebKit error code 102 (Frame load interrupted by policy change) sur le redirect 303 retourné par /login après pose du cookie. Solution Phase 0 : laisser le user saisir le token une fois via le formulaire /login standard, le cookie coach_web_token (1 an, secure, httponly, samesite=lax) doit persister dans WKWebView pour les lancements suivants. Si la persistance cookie échoue : inject natif via AppDelegate.swift à venir.
46 lines
981 B
TypeScript
46 lines
981 B
TypeScript
import type { CapacitorConfig } from '@capacitor/cli';
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'ch.hypnotruck.coach',
|
|
appName: 'Coach Hypnotruck',
|
|
webDir: 'www',
|
|
|
|
server: {
|
|
url: 'https://coach.hypnotruck.ch',
|
|
cleartext: false,
|
|
androidScheme: 'https',
|
|
},
|
|
|
|
ios: {
|
|
contentInset: 'always',
|
|
scrollEnabled: true,
|
|
limitsNavigationsToAppBoundDomains: false,
|
|
backgroundColor: '#ffffff',
|
|
},
|
|
|
|
plugins: {
|
|
SplashScreen: {
|
|
launchShowDuration: 1500,
|
|
launchAutoHide: true,
|
|
backgroundColor: '#ffffff',
|
|
showSpinner: false,
|
|
splashImmersive: false,
|
|
},
|
|
StatusBar: {
|
|
style: 'DEFAULT',
|
|
backgroundColor: '#ffffff',
|
|
overlaysWebView: false,
|
|
},
|
|
PushNotifications: {
|
|
presentationOptions: ['badge', 'sound', 'alert'],
|
|
},
|
|
LocalNotifications: {
|
|
smallIcon: 'ic_stat_icon_config_sample',
|
|
iconColor: '#488AFF',
|
|
sound: 'beep.wav',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|