Ionic 4 Deeplinks

Hi
I read Deeplinks Document from HERE
i import it in app.component.ts file

import { Deeplinks } from '@ionic-native/deeplinks/ngx';

constructor(
    private deeplink: Deeplinks,
  ) { }

but i get error :
Error: “StaticInjectorError(AppModule)[AppComponent -> Deeplinks]: StaticInjectorError(Platform: core)[AppComponent -> Deeplinks]: NullInjectorError: No provider for Deeplinks!”

i search a lot but i can’t find any tutorial for Deeplinks in ionic 4 !!

Add it to the app.module.ts providers also.

1 Like

Add it to the providers list in app.module.ts