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

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.

@Brent

Just tested the activity plugin. Works fine on iphone but crashes on ipad.

The reason is that on ipad you need to present the activity view in a popover.

This also means you need to send parameters from corona telling where the popover should be presented. You already do this kind of thing in the implementation of media.selectPhoto:

origin = button.contentBounds, permittedArrowDirections = { "right" },

Thanks

also it would be nice to be able to set the subject ( although I think this is only used in emails )

[activityController setValue:@"Some email subject" forKey:@"subject"];

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

Just curious - what is the deciding factor on new features becoming Pro and Above only?

There are many factors that go into the decision.  Some are technical, like it needs a feature that’s only available to pro subscribers, or perhaps we made a change that’s currently only available in daily builds that the plugin needs, so it’s only available to pro subscribers until the next build (AdMob V2 is a great example of this).  Other times it’s a business decision.

Rob

Heh, I understand. I just feel like the Basic user gets no love even though we give Corona money too :frowning:

To be fair Rick, the benefit Basic subscribers get over Starter subscribers is access to in-app purchases, which used to be a pro-only feature.  When we have new IAP plugins, Basic gets them, like Amazon’s IAP.

Rob

Does this plugin work with sharing photos to instagram? (I tried and can’t get Instagram to show in the list, even though other apps like linkedin and asana do show up in the share list). Also, I haven’t tried it yet, but someone pointed out this doesn’t work on iPad? Is there a workaround?

Thanks in advance

David

It’s up to the app wanting to show up there to register themselves as compatible.  Then depending on your combination of links, texts and images, it may disqualify options from showing up.  I don’t know the specifics for Instagram or if they even try to register themselves.

Rob

<playthisstudios>: Do other apps installed on the same iOS device list Instagram as a valid sharing option? For images, text, URLs, all three? Or just a subset?

Presumably Corona is handing off the data to the OS, and the OS is showing all the apps that are properly registered. On the other hand, it could be an issue with this plugin; Corona’s Android Facebook sharing has been broken for years (Rob pointed this out recently to Engineering), so it would be useful to document if there are problems with the iOS sharing action sheet. You haven’t given Corona enough information to begin to diagnose the problem.

@playthisstudios. No it doesn’t work because Instagram needs to be implementeted with the UIDocumentInteractionController not the UIActivityController that the activity plugin implements, but it is possible to ad Instagram to the UIActivityController as a custom activity, but I guess CL decided not to do that. You can use this enterprise plugin https://github.com/jcbnlsn/CoronaSharePluginit has Instagram and it work’s on ipad.

Thanks ojnab!

Rob, any chance your guys will add instagram support as ojnab described through a custom activity? And have been able to test the CL plugin on iPad to confirm that issue?

David

I’ve not seen the code, so I don’t know what’s possible with instagram.  But we will eventually have to address the iPad issue.  I’ll check and see where we are with it. 

Rob

@playthisstudios

And btw someone in this thread figured out a way to use instagram without plugins:

http://forums.coronalabs.com/topic/54267-here-is-how-to-share-a-picture-image-with-instagram-with-corona-sdk-without-enterprise/

Folks: <swati.bajaj> reports in another thread that iOS sharing does not work with WeChat. WeChat has half a billion users*, with about 100 million outside of China. Here’s the discussion: http://forums.coronalabs.com/topic/53668-social-network-plugin/#entry286692

As far as I can tell from multiple forum threads, iOS sharing does not work with Instagram or WeChat or on iPads at all, and Android sharing does not work with Facebook. A timeframe to fix all of these would be useful.

* Source on the 500M userbase: Reuters: http://www.reuters.com/article/2015/02/17/china-autos-apps-idUSL4N0VR0KE20150217

Any eta on the iPad fix? We can’t use this until it works across platforms correctly.

Regarding Instagram, WeChat and others:

The activity functionality built into iOS — and the functionality of our Activity plugin — is partially based on what the recipient app provides (i.e. Instagram). If you open up Apple’s “Activity” panel, i.e. by opening the “Share” dialog from within Apple’s own “Photos” app and you click “More…”, you’ll notice that certain apps appear in the menu, while others do not. Instagram does not. 

Instagram and other apps can choose to implement the iOS 8 sharing extension if they want.  There is a way for an app to force these, but it requires native code that can’t be easily implemented in a generic way through our plugin.

In summary, if you need to add other services according to your desires, you can accomplish it via Corona Enterprise. Here is an article which discusses the process:
http://www.codingexplorer.com/add-sharing-to-your-app-via-uiactivityviewcontroller/