31 lines
705 B
TypeScript
31 lines
705 B
TypeScript
import type { CapacitorConfig } from '@capacitor/cli';
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'pub.agora.app',
|
|
appName: 'Agora',
|
|
webDir: 'dist',
|
|
server: {
|
|
androidScheme: 'https',
|
|
iosScheme: 'https'
|
|
},
|
|
android: {
|
|
// Enable safe area handling for notches and navigation bars
|
|
allowMixedContent: false,
|
|
backgroundColor: '#14161f'
|
|
},
|
|
ios: {
|
|
backgroundColor: '#14161f',
|
|
contentInset: 'never',
|
|
scheme: 'Agora'
|
|
},
|
|
plugins: {
|
|
SystemBars: {
|
|
// Inject --safe-area-inset-* CSS variables on Android to work around
|
|
// a Chromium bug (<140) where env(safe-area-inset-*) reports 0.
|
|
insetsHandling: 'css',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|