Making the app fullscreen on Android
This commit is contained in:
1 parent
da61c8cf46
commit
b797015c57
3 files changed
+33
No files matched your search
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user