When I am trying to use Ionic's social sharing plugin (https://ionicframework.com/docs/native/social-sharing/) I receive the following error message: ERROR: Plugin 'SocialSharing' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
I am testing on an mobile device (Iphone 7 - IOS 12 - and the error shows up in Xcode).
The way I am trying to open the social share is:
this.socialSharing.shareViaFacebook(null, null, link).then(() => {
console.log('I'm in');
}).catch((error) => {
console.log('err', error);
});
In my config.xml I already have:
<plugin name="cordova-plugin-x-socialsharing" spec="5.4.4">
<variable name="ANDROID_SUPPORT_V4_VERSION" value="24.1.1+" />
</plugin>
What could be the cause of this issue ?
Thank you!
onDeviceReadyevent? - Kody R.