Closed diazpaul closed 8 years ago
How are you running the app? Web, simulator, companion app, real device? And is this iOS or Android?
Hi, in web simulator and real device, Android.
Is there any way to solve it?
Share your entire index.html
and I may take a look.
<script src="js/SocialSharing.js"></script>
should not be there.cordova.js
also available on your device?This is the repository:
https://github.com/diazpaul/efecto_cocuyo_app
i installed the plugin again, but now the error is this:
Uncaught TypeError: Cannot read property 'socialsharing' of undefined
i don't see SocialSharing in the list of plugin in your project
that's weird!, i reinstalled the plugin, then the error was other, Uncaught TypeError: Cannot read property 'socialsharing' of undefined
, then i replaced var cordova = require('cordova');
to var cordova = window.cordova;
and it works now. Thanks for answer.
@diazpaul, the same change worked for me as well!!
I installed this plugin by telerik platform, I don't know if it need more configuration. i just write this code :
<a href="#" class="icono-navbar" onclick="window.plugins.socialsharing.share('Message only')"> <i class="fa fa-share-alt" aria-hidden="true"></i> </a>
Regards