Error: NullInjectorError: No provider for AndroidFullScreen! in Angular
Failed: R3InjectorError(DynamicTestModule)[Service -> AndroidFullScreen -> AndroidFullScreen]:
NullInjectorError: No provider for AndroidFullScreen!
error properties: Object({ ngTempTokenPath: null, ngTokenPath: [ 'Service', 'AndroidFullScreen', 'AndroidFullScreen' ] })
at NullInjector.get (node_modules/@angular/core/fesm2020/core.mjs:6364:27)
at R3Injector.get (node_modules/@angular/core/fesm2020/core.mjs:6791:33)
at R3Injector.get (node_modules/@angular/core/fesm2020/core.mjs:6791:33)
at injectInjectorOnly (node_modules/@angular/core/fesm2020/core.mjs:4775:33)
at ɵɵinject (node_modules/@angular/core/fesm2020/core.mjs:4779:12)
Solution:
Add the following import at the top of your module file:
import { AndroidFullScreen } from '@awesome-cordova-plugins/android-full-screen/ngx';
and then add the AndroidFullScreen in the providers of your module:
providers: [...., AndroidFullScreen]