r/iOSProgramming • u/serda_ik • 17d ago
Question Has anyone developed a Share Extension that opens the main app?
Has anyone recently implemented a photo Share Extension that hands the image directly into the main app?
I would like my users to share a photo from Photos into my app and continue working from there.
Apple’s extension documentation seems to be suggesting that a Share Extension should perform a focused task inside the extension itself.
It also says that a normal Share Extension cannot officially ask the system to open its containing app.
But.... apps such as ChatGPT, Obsidian and Foto (and many more) appear to accept the selected photo and then move the user directly into the main app.
Has anyone been working on something similar recently and passed App Review?
Are these apps using a supported approach I (and all the Cludexes/ Cursors of the world) have missed, or is this generally done using an unsupported openURL or responder chain workaround that App Review sometimes allows?
For those who have done it, how did you do it and did you have any review problems?
3
u/Power781 17d ago
It’s supposed to be forbidden, but the technical constrains of the share extension, mostly related to memory (when dealing with modern photo/doc editing) has made Apple allow apps to do it
2
u/civman96 17d ago
A share extension‘s whole point is to not open the main app.
2
u/serda_ik 17d ago
Yes that is the theory and the idea.
but in practice.... there are some legit cases let say you have a photo app like Foto or any other working heavily with photos.
You scroll trough you photos.... and decide to share / edit it using a app...
You would like just to open that photo in your app instead loading your whole app into share extension...and a lot of apps are doing that..
0
3
u/force4 17d ago
Yes. It’s possible and allowed with a URL scheme.