mesmotronic / cordova-plugin-fullscreen

Plugin for Cordova (PhoneGap) to enable Android's various full screen modes
BSD 3-Clause "New" or "Revised" License
168 stars 56 forks source link

Ionic 4 - not working #40

Open Lopuch opened 4 years ago

Lopuch commented 4 years ago

Hello, I have no luck to run this plugin with Ionic 4.

I added AndroidFullScreen into app.module.ts imports. Nothing more. And I get this error:

compiler.js:2175 Uncaught Error: Unexpected value 'AndroidFullScreen' imported by the module 'AppModule'. Please add a @NgModule annotation. at syntaxError (compiler.js:2175) at compiler.js:19833 at Array.forEach (<anonymous>) at CompileMetadataResolver.getNgModuleMetadata (compiler.js:19808) at JitCompiler._loadModules (compiler.js:25582) at JitCompiler._compileModuleAndComponents (compiler.js:25565) at JitCompiler.compileModuleAsync (compiler.js:25527) at CompilerImpl.compileModuleAsync (platform-browser-dynamic.js:216) at compileNgModuleFactory__PRE_R3__ (core.js:34647) at PlatformRef.bootstrapModule (core.js:34956)

The error is the same for a WebBrowser and for a native build.

Is anyone using this plugin with Ionic 4?

phihochzwei commented 4 years ago

Have you provided it in your AppModule and if so, is the import-Path correct?