iOS Question How to use ActivityViewController to share to one app only

JackKirk

Well-Known Member
Licensed User
Longtime User
Hi,

I'm using https://www.b4x.com/android/forum/t...pp-with-activityviewcontroller.73159/#content to share photos with other applications.

Have had it all working for some time but recently have discovered a problem.

If the photo is too large (ie pixels wide x pixel high - NOT file size) the share will fail to some apps with the ..._Complete event returning Success as false and activityType as the package name of the app that sharing failed to.

I have come up with a workaround that allows the user to reduce the size of the photo being shared and to try again - as described here:
https://www.b4x.com/android/forum/t...wcontroller-error-messages.129571/post-815098

The problem is that if I just show the ActivityViewController pop-up again all possible sharing apps are shown.

What I would like to be able to do under these circumstances is have the ActivityViewController pop-up only show the app that previously failed (and whose package name I now have from the previous failing ..._Complete event).

I've searched the forums and googled myself silly without success.

Any clues?

Thanks in anticipation...
 
Last edited:

JackKirk

Well-Known Member
Licensed User
Longtime User
Sasuke,
I dont think it can be done is the app you're trying to share to is yours ?
No - I want to share a file to a third party app that my app initially failed to share to because of file size.
if yes then you can make something with url scheme
Not sure I understand?

Thanks...
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
so look into the source of the app you're trying to share to if its open source
I'm looking for a general capability - I don't know what apps the user may wish to share with.

I'm rapidly coming to the conclusion that it can't be done - another pathetic feature of iOS.

Thanks for your interest...
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…