[IOS/Android] Simple Share to email/Twitter/Facebook etc[V1.9.6]

havana24

  • *
  • Posts: 505
It works, amazing!
Thanks rob! :)

-Alessandro
My Website: www.havana24.net


jaughnaugh

  • *
  • Posts: 32
Hey Robin,

I can't happen to share to twitter, it immediately shows failed...
and will it be possible to share to whatsapp too?

Testing on iOS 9.1

thanks..

robinschaafsma

  • *
  • Posts: 714
Hey,

Twitter is working fine on my side and i heard nobody else with this problem. So maybe you can share some logs with the error.

Yes if  WhatsApp is installed than you can share with WhatsApp, if it is not showing up in the share dialog, push more and enable WhatsApp.

tigerteeth

  • Posts: 734
any chance of making this for Flash and HTML5?

mdotedot

  • Posts: 1569
Hello Robin,

Unfortunately I got two crash-reports on my App using an old simple-share extension.

This is what I had to change to make it work for iOS 6.1.6 and iOS 8.1.2:
Code: [Select]
NSMutableArray *excludeActivities= [NSMutableArray array];

if(UIActivityTypePrint!= NULL)

        [excludeActivities addObject:UIActivityTypePrint];

if(UIActivityTypeCopyToPasteboard!= NULL)

        [excludeActivities addObject:UIActivityTypeCopyToPasteboard];

if(UIActivityTypeAssignToContact != NULL)

        [excludeActivities addObject:UIActivityTypeAssignToContact];

// crashes ios 6.1.6

/*

if(UIActivityTypeAddToReadingList != NULL)

        [excludeActivities addObject:UIActivityTypeAddToReadingList];

if(UIActivityTypePostToFlickr != NULL)

        [excludeActivities addObject:UIActivityTypePostToFlickr];

if(UIActivityTypePostToVimeo != NULL)

        [excludeActivities addObject:UIActivityTypePostToVimeo];

if(UIActivityTypePostToTencentWeibo != NULL)

        [excludeActivities addObject:UIActivityTypePostToTencentWeibo];

*/

if( UIActivityTypePostToWeibo!= NULL)

        [excludeActivities addObject:UIActivityTypePostToWeibo];

avc.excludedActivityTypes = excludeActivities;




And for iOS 8.1.2 I had to comment this:
Code: [Select]
/*

                if ([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft)

                {

                    popPresenter.sourceRect = CGRectMake(width, height ,1, 1);

                }

                else if ([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight)

                {

                    popPresenter.sourceRect = CGRectMake(width, height ,1, 1);

                }

                else if ([[UIDevice currentDevice] orientation] == UIDeviceOrientationPortrait || [[UIDevice currentDevice] orientation] == UIDeviceOrientationPortraitUpsideDown)

                {

                    popPresenter.sourceRect = CGRectMake(height, width, 1, 1);

                }

*/





Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

robinschaafsma

  • *
  • Posts: 714
Ok thanks, can you share the crash reports? Is it on iPhone or iPad?
If you can send me the reports i can investigate it why it crash on those iOS.

Thanks...

mdotedot

  • Posts: 1569
Hi Robin,

If you refer to something that the iOS does not understand it will crash.
"  The constants you need (UIActivityTypeAddToReadingList and UIActivityTypeAirDrop) are not available so what you can do is use their literal values (most likely the same as the variable name) until you recompile with the iOS 7 SDK
"
So I guess the others are not valid for that iOS version as well.

I didn't need the orientation things so I just commented it out and it worked across the devices I had.
How did you come up with that orientation code anyway? Is it something that you required for some other bug. I've seen some issues with orientation.




Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

tigerteeth

  • Posts: 734
Ok thanks, can you share the crash reports? Is it on iPhone or iPad?
If you can send me the reports i can investigate it why it crash on those iOS.

Thanks...

Hey Robin, just in case you didn't see my message, I wanted to say I'd really love a SWF/HTML5 version of this. Would pay/donate. Thanks for your work so far.

robinschaafsma

  • *
  • Posts: 714

Hey Robin, just in case you didn't see my message, I wanted to say I'd really love a SWF/HTML5 version of this. Would pay/donate. Thanks for your work so far.

No sorry not by me..

robinschaafsma

  • *
  • Posts: 714
UPDATE Available version 1.9.1

Added extra permission for iOS 10, so app will not crash, extension requires byRobin Extension Manager



ohgem

  • Posts: 42
Does this work for 3.4?
Follow: Twitter | Instagram
My Games: Jump Jump Fruit IOS