SocialSharing-PhoneGap-Plugin: Plugin is very slow

Hi,

First, thank you for this plugin.

I’m using it on Android (latest cordova version, testing on Lollipop). The problem is that the share dialog is very slow to show. Here’s my code:

// Click handler
console.log("shareOffer");
var
  message = "Offre d'emploi " + this.state.title,
  subject = "Offre d'emploi " + this.state.title,
  image   = null,
  link    = "http://www.google.com/" + pathToAppend;
window.plugins.socialsharing.share(message, subject, image, link);

The console instantly logs ‘shareOffer’ on click, but the modal shows 2-4 seconds afterwards. I noticed that if i close and reopen the dialog, it opens quickly enough. Only the first opening is slow, which kills the UX 😦

I saw others had the problem (i.e #382) but I have 0 errors in the webview and 0 in logcat.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 35 (12 by maintainers)

Most upvoted comments

the slowness is generally due to the download of the a image when you provide an image url. switch to local image or base64