Appsflyer sdk in Ionic 4

I am trying to appsflyer analytics on my app. I have installed the plugins -
Add to config.xml like stated on github and then start npm install --save @ionic-native/appsflyer@4 and have added the plugins in app’s module file. However, when i run the app in xcode, I get the error - plugin not installed. I have tried changing the version of the plugin but it didnt help. This is my project info -
Ionic:

Ionic CLI : 5.4.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.10.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 26 other plugins)

Utility:

cordova-res : 0.7.0 (update available: 0.8.0)
native-run : 0.2.9

System:

ios-sim : 8.0.2
NodeJS : v10.16.3 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 11.0 Build version 11A420a

Please help in resolving the issue. Thank you