Supporting iOS modal share action sheet (AirDrop, Print, Add to Home Screen, Add Bookmark, Add to Reading List, etc.)

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

So how do I do the opposite of this, and let someone send data into my Corona app? How do I register my Corona app to show up in someone else’s share sheet in iOS?

Our plugin only supports what iOS does out of the box. While the controller we are using will support other apps, you would need to use Corona Enterprise and build your own version that handles the specifics of your app.

Rob