banterchat/SocialSharing-PhoneGap-Plugin — pull request #1 by dougnukem (2014-11-17 06:31:35+00:00)
Title: add shareActivityType for iOS to specify different data for (Facebook, Twitter, Email, Clipboard etc)

- used by https://github.com/banterchat/legit/pull/903

Allows JS clients to provide different data to share depending on the share destination (e.g. Facebook, Twitter, Email, Text Message, clipboard).

Currently only works on iOS, we'll need to revisit it for Android.

For example a client could implement a template system and then pass the following datastructure to `socialshare.shareForActivityType(data)`
```
{
"PostToFacebook": {
"msg": "Check out my rankings for {{=it.collection.name}}",
"link": "{{=it.link}}"
},
"PostToTwitter": {
"msg": "Check out my rankings for {{=it.collection.name}} on @legitapp",
"link": "{{=it.link}}"
},
"Mail": {
"subject": "Are we compatible? Check out my rankings for \"{{=it.collection.name}}\"",
"msg": "

I just completed {{=it.collection.name}} on Legit - check out my rankings and see if we agree.
View My Rankings

",
"link": "{{=it.link}}"
},
"CopyToPasteboard" : {
"link": "{{=it.link}}"
},
"Message" : {
"msg": "Are we compatible? Check out my rankings for \"{{it.collection.name}}\" on Legit: ",
"link": "{{=it.link}}"
},
"default": {
"link": "{{=it.link}}"
}
}
```

- uses https://github.com/rdougan/RDActivityViewController to provide a UIActivityViewController that allows an array of data depending on the activity type being shared