Sharing an image an a text on every available thing.

Hi guys, I’m an iOS I want to show something like this native share view controller:

uiactivityviewcontroller.png

In native iOS this is very easy to use, you just have to create an instance of UIActivityViewController with the items you want to share, for example an image, a text, a url, and the just ‘presentViewController’. It automatically shows you all the available stuff to share and you can pick one and that’s it…

Is there a way of doing this? I know that with android something similar can be done and it looks like this: 

6fJKim.png

Any idea if there is a way to accomplish this???

Thanks a lot!!!

There is a plugin available to Pro subscribers called the “social” plugin.  On Android, I think it brings up a share screen like that. 

We did a tutorial a while back that showed how to make something similar: 

http://coronalabs.com/blog/2014/04/15/tutorial-creating-a-sharing-panel/

Though it’s more of an iOS 6 style sharing panel.  You could still take that and make it Icon based for iOS 7+.  Keep in mind many of the available sharing panels like Facebook and Twitter are available through the social plugin, which requires a Pro or higher level account to use.

Rob

That’s pro?!?! not even basic?! Come on! for indie devs 50 u$s it’s a HUGE amount of money!!   :frowning:

I’ll have to change my platform I don’t want to do that  :(  :frowning:

is there any other way to just share without having to authenticate the user for twitter/facebook?

Regardless, you will have to authenticate with one of the services, either by directly working with Facebook or Twitter or by using the Social plugin which uses the user’s iOS/Android login settings.

I want to cry :( 

So my options are: 

1- Paying 588 dollars to use this only feature.

2- Authenticating with FB and Twitter just to share something creating a horrible user experience and a huge overhead. 

3- Change SDK.

I think I’m leaving corona for my indie projects, I can’t afford paying that amount of money for a small three scenes game… 588 dollars here were I live is a one month salary and for a company that may be a ridiculous amount but for a indie dev it’s a lot. You guys are doing an awesome job and I think it’s completely fine to make money of it because that’s the idea of this! but it would be awesome if you can review your pricing tiers, or at least let devs buy plugins as needed… I would love to buy the “social” plugin for a reasonable amount of money but I really don’t care any of the other advantages of being a pro (really I would not use any of those because are completely out of scope for my small projects). It would be awesome Rob if you can submit my ideas to the guys on sales or something!

Just to be sure we are talking about the same thing, I just need to have this displayed on my app to share scores as most of the games are doing nowadays: 

ios6tut_share_twitter.jpg

Thanks a lot!

I’ll share this with the team. 

I found how to share on twitter in iOS devices doing the following: 

local options = { message = "My High Score", url = "www.google.com.ar" } native.showPopup("twitter",options)

Now I need to do something similar with android. Is there a way to open the twitter app on android as if I’m using an intent? 

Something like this:

// Create intent using ACTION\_VIEW and a normal Twitter url: String tweetUrl = String.format("https://twitter.com/intent/tweet?text=%s&url=%s", urlEncode("Tweet text"), urlEncode("https://www.google.fi/")); Intent intent = new Intent(Intent.ACTION\_VIEW, Uri.parse(tweetUrl)); // Narrow down to official Twitter app, if available: List\<ResolveInfo\> matches = getPackageManager().queryIntentActivities(intent, 0); for (ResolveInfo info : matches) { if (info.activityInfo.packageName.toLowerCase().startsWith("com.twitter")) { intent.setPackage(info.activityInfo.packageName); } } startActivity(intent);

We offer the Social plugin for this.  It’s a feature for Pro and Enterprise subscribers.  You cannot call the intent directly with Corona SDK.  

Rob

ok. Thanks.

There is a plugin available to Pro subscribers called the “social” plugin.  On Android, I think it brings up a share screen like that. 

We did a tutorial a while back that showed how to make something similar: 

http://coronalabs.com/blog/2014/04/15/tutorial-creating-a-sharing-panel/

Though it’s more of an iOS 6 style sharing panel.  You could still take that and make it Icon based for iOS 7+.  Keep in mind many of the available sharing panels like Facebook and Twitter are available through the social plugin, which requires a Pro or higher level account to use.

Rob

That’s pro?!?! not even basic?! Come on! for indie devs 50 u$s it’s a HUGE amount of money!!   :frowning:

I’ll have to change my platform I don’t want to do that  :(  :frowning:

is there any other way to just share without having to authenticate the user for twitter/facebook?

Regardless, you will have to authenticate with one of the services, either by directly working with Facebook or Twitter or by using the Social plugin which uses the user’s iOS/Android login settings.

I want to cry :( 

So my options are: 

1- Paying 588 dollars to use this only feature.

2- Authenticating with FB and Twitter just to share something creating a horrible user experience and a huge overhead. 

3- Change SDK.

I think I’m leaving corona for my indie projects, I can’t afford paying that amount of money for a small three scenes game… 588 dollars here were I live is a one month salary and for a company that may be a ridiculous amount but for a indie dev it’s a lot. You guys are doing an awesome job and I think it’s completely fine to make money of it because that’s the idea of this! but it would be awesome if you can review your pricing tiers, or at least let devs buy plugins as needed… I would love to buy the “social” plugin for a reasonable amount of money but I really don’t care any of the other advantages of being a pro (really I would not use any of those because are completely out of scope for my small projects). It would be awesome Rob if you can submit my ideas to the guys on sales or something!

Just to be sure we are talking about the same thing, I just need to have this displayed on my app to share scores as most of the games are doing nowadays: 

ios6tut_share_twitter.jpg

Thanks a lot!

I’ll share this with the team. 

I found how to share on twitter in iOS devices doing the following: 

local options = { message = "My High Score", url = "www.google.com.ar" } native.showPopup("twitter",options)

Now I need to do something similar with android. Is there a way to open the twitter app on android as if I’m using an intent? 

Something like this:

// Create intent using ACTION\_VIEW and a normal Twitter url: String tweetUrl = String.format("https://twitter.com/intent/tweet?text=%s&url=%s", urlEncode("Tweet text"), urlEncode("https://www.google.fi/")); Intent intent = new Intent(Intent.ACTION\_VIEW, Uri.parse(tweetUrl)); // Narrow down to official Twitter app, if available: List\<ResolveInfo\> matches = getPackageManager().queryIntentActivities(intent, 0); for (ResolveInfo info : matches) { if (info.activityInfo.packageName.toLowerCase().startsWith("com.twitter")) { intent.setPackage(info.activityInfo.packageName); } } startActivity(intent);

We offer the Social plugin for this.  It’s a feature for Pro and Enterprise subscribers.  You cannot call the intent directly with Corona SDK.  

Rob

ok. Thanks.

is this free now???