- Capacitor 8 + plugins natifs (push, local-notif, geoloc, HealthKit Capgo, splash, status bar, haptics) - Config pointe vers https://coach.hypnotruck.ch (server.url) - Icône 1024×1024 + splash 2732×2732 depuis icon-512 PWA coach_sportif - README complet avec procédure build sur Mac mini - Bundle ID : ch.hypnotruck.coach, App name : Coach Hypnotruck
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;
|