Thank you guys for adding this plugin! One question though, how do I put a subject in the email section? When I add strings its only adding it to the body.
You can’t.
Folks: There’s been some discussion of adding these 10 lines of Objective C on this forum thread:
As far as I can tell, Walter’s response was, basically, no.
It would be nice to have a response from Rob on this thread – it’s been two weeks of radio silence – since Walter said it was off-topic elsewhere.
Hi @corona273,
To clarify, the answer isn’t simply “no”, but we’d like to guage the demand for this via the expected venue (feedback). The other thread was about the Twitter popup, and so that thread should be kept on-topic.
Currently, we are consolidating and combining various feedback requests which are related, and if we gather these into one basket with a large amount of votes, then it will be treated with higher priority.
Thanks,
Brent
Hi all,
on my iPad with iOS the plugin still crashes. Console says:
<Error>: *** Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘-[UIPopoverController dealloc] reached while popover is still visible.’
Any ideas?
Thanks
Peter
Please read:
https://coronalabs.com/blog/2015/03/17/tutorial-utilizing-the-activity-popup-plugin-ios/
Rob
Hi Rob
I took the code from https://github.com/coronalabs/plugins-sample-native-popup-activity
declared local button on top of the code and replaced
native.showPopup( popupName,
{
items = itemsToShare,
– excludedActivities = { “UIActivityTypeCopyToPasteboard”, },
listener = listener,
})
with
native.showPopup( popupName,
{
items = itemsToShare,
– excludedActivities = { “UIActivityTypeCopyToPasteboard”, },
listener = listener,
origin = button.contentBounds,
permittedArrowDirections={ “up”, “down” }
})
I build with the daily build 2015.2603 - put it on device ( iPad Air with iOS 7.1.2 )
and the popup shows up for a blink of a second and then it crashes. In xcode console window:
Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘-[UIPopoverController dealloc] reached while popover is still visible.’
Is iOS 7.1.2 the problem ?
Thanks
Peter
Hi Rob
I did an Upgrade to iOS 8.2 and now all works well.
Confusing.
Regards
Peter
I did a native plugin for the modal share action with image, text and url (for Airdrop, MMS, Mail, Air print, Twitter, Facebook etc.) + Instagram sharing as a custom activity.
You can find it here: https://github.com/jcbnlsn/CoronaSharePlugin
This is only for Enterprise subscribers.
@CoronaLabs feel free to put it on your plugin server
Folks: There are now two more threads in the last day or so asking about sharing:
"I think instagram/apple decided that the only way to share to instagram is through the native UIDocumentsInteractionController.
Corona doesn’t have that implementet but you should vote it up in the feature requests."
Brent: It’s been two weeks since you said you were consolidating and combining feedback requests, and we’ve known for a while that proper sharing is developers’ most-requested feature. Can you give us any insight into a timeframe, either through your own method or through <ojnab>'s plugin if possible?
Hi all,
We understand and have listened to your requests. We will have our own plugin for this available within the next few days, available to Pro and above. It will mimic the UIActivityController in iOS and should offer whatever Apple offers in that regard.
Best regards,
Brent
Brent: This is excellent news! Thanks very much for listening to us. You’ve made my week!
Execellent news! How can we share to instagram on android?
<spacewolf>: You may want to check out this discussion of Android sharing, though it’s focused on Corona’s lack of support for Facebook sharing via the social plugin:
So the social plugin will allow sharing to instagram if you specify an image in the api call?
Yes, I tested it with my Corona-built app a moment ago and it works. More precisely, it launches Instagram from within a Corona Android app – but I’m not logged into Instagram on my Nexus test device so I don’t know if it’s actually crippled like Facebook.
You may need a pro subscription to use this, not sure.
Great news! Been looking forward to this feature for a long time. I can finally ditch my twitter and Facebook native.showPopup() work around.
Hi all,
This plugin should be ready for you to use. Remember, this is for iOS only. Here’s the documentation:
http://docs.coronalabs.com/daily/plugin/CoronaProvider_native_popup_activity/index.html
Take care,
Brent
Brent! Thanks again! I built a Corona app yesterday (using daily build 2015.2553) and the plugin worked perfectly on an iOS device.