Tous les backgroundColor passent de #ffffff à #000000 : - ios.backgroundColor (WebView natif entre 2 navigations) - SplashScreen.backgroundColor (cohérence avec splash dark) - StatusBar.backgroundColor (cohérence avec app dark) StatusBar.style passe de DEFAULT à LIGHT (icônes/texte blanc sur fond noir, lisible sur app dark). À synchroniser au prochain rebuild : npx cap sync ios (régénère ios/App/App/capacitor.config.json) puis archive Xcode. Pendant ce temps, fix web déjà déployé (style inline html/body) atténue le flash sans rebuild requis. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
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,
|
|
// Fond noir natif : évite le flash blanc du WebView entre 2 pages
|
|
backgroundColor: '#000000',
|
|
},
|
|
|
|
plugins: {
|
|
SplashScreen: {
|
|
launchShowDuration: 1500,
|
|
launchAutoHide: true,
|
|
backgroundColor: '#000000',
|
|
showSpinner: false,
|
|
splashImmersive: false,
|
|
},
|
|
StatusBar: {
|
|
// App dark : style LIGHT = icônes/texte status bar en blanc sur fond noir
|
|
style: 'LIGHT',
|
|
backgroundColor: '#000000',
|
|
overlaysWebView: false,
|
|
},
|
|
PushNotifications: {
|
|
presentationOptions: ['badge', 'sound', 'alert'],
|
|
},
|
|
LocalNotifications: {
|
|
smallIcon: 'ic_stat_icon_config_sample',
|
|
iconColor: '#488AFF',
|
|
sound: 'beep.wav',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|