Making the app fullscreen on Android

This commit is contained in:
vdv committed 2022-12-14 15:26:32 +01:00
1 parent da61c8cf46
commit b797015c57
3 files changed
+33

No files matched your search

+6
View File
@@ -1,6 +1,12 @@
import type { Component } from 'solid-js';
import { Routes, Route, Navigate } from '@solidjs/router';
import Map from './components/map';
import { AndroidFullScreen } from '@awesome-cordova-plugins/android-full-screen';
// See https://stackoverflow.com/questions/71288670/how-to-make-fullscreen-ionic-capacitor-app
AndroidFullScreen.isImmersiveModeSupported()
.then(() => AndroidFullScreen.immersiveMode())
.catch(console.warn);
const App: Component = () => {
return (