Social Share not working (Ionic 5)

Hi All

I am trying to implement Ionic Social Share and so far its giving me issues to a point where I am about to give up on it.

App Details


   Ionic CLI                     : 6.12.1 (C:\Users\xxx\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.3.2
   @angular-devkit/build-angular : 0.1000.8
   @angular-devkit/schematics    : 10.0.8
   @angular/cli                  : 10.0.8
   @ionic/angular-toolkit        : 2.3.3


   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 18 other plugins)

Plugin Details

"@ionic-native/social-sharing": "^5.27.0",
"cordova-plugin-x-socialsharing": "^5.6.8",

Error DEtails

ERROR Error: Uncaught (in promise): Class not found
    at T (polyfills-es2015.f432bc0bb7242979dc1a.js:1)
    at polyfills-es2015.f432bc0bb7242979dc1a.js:1
    at Object.callbackFromNative (cordova.c464b14390c8a3bb44df.js:1)


It is virtually impossible to debug production mode builds. Does your problem persist even when building in debug mode?

I get this in debug mode

ERROR Error: Uncaught (in promise): Class not found
    at resolvePromise (polyfills-es2015.js:3904)
    at polyfills-es2015.js:3811
    at Object.callbackFromNative (cordova.js:289)
    at processMessage (cordova.js:1129)
    at processMessages (cordova.js:1152)
    at ZoneDelegate.invoke (polyfills-es2015.js:3470)
    at Object.onInvoke (vendor-es2015.js:69538)
    at ZoneDelegate.invoke (polyfills-es2015.js:3469)
    at (polyfills-es2015.js:3229)
    at polyfills-es2015.js:3963