[TIMOB-28015] Add native social sharing into Titanium SDK
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Resolved |
Resolution | Done |
Resolution Date | 2021-03-31T11:53:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | 2021-Q1, share, shareSDK, sharekit |
Reporter | Brenton House |
Assignee | Satinder Pal Singh |
Created | 2020-07-13T21:46:50.000+0000 |
Updated | 2021-05-17T16:31:11.000+0000 |
Description
I have seen several suggestions over the years to integrate support for the native share sheets into the Titanium SDK. I've seen some modules floating around like the one shared by Ricardo here: https://github.com/ricardoalcocer/socialshare but they are really old and I am not sure they work with current versions of the framework.
It would be great to have native modules for iOS and Android that ship with the SDK similar to how Ti.identity and others do.
You can easily do this on Android via a share intent. No native module required. You can already do this via Titanium's core JavaScript APIs now. This is really only a limitation on the iOS side. Apple has deprecated ShareKit. I don't know if there is an official replacement.
Not as familiar with the native side but others seem to be using UIActivityViewController. Is that related to the ShareKit you mentioned?
Yeah, it looks like
UIActivityViewController
is your only option on iOS.Release is available for publishing https://github.com/appcelerator-modules/appcelerator.social-share/releases/tag/v1.0.0