IOS share extension to store image in app group and open with custom URI scheme #30996
Unanswered
hflexgrig
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to share my sample app, which is based on @VladislavAntonyuk 's template. You can share image from photos or screenshot editor, and display on a main app.
Simulator.Screen.Recording.-.iPad.A16.-.2025-08-03.at.16.19.23_compressed.mp4
Source
Extension and main app uses app group defined in Entitlements.plist
<dict> <key>com.apple.security.application-groups</key> <array> <string>group.com.yourcompany.mauiapp</string> </array> </dict>
also custom URI scheme defined in main app's Info.plist
<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>com.vladislavantonyuk.container</string> <key>CFBundleURLSchemes</key> <array> <string>mauiapp</string> </array> </dict> </array>
extension app reads image data, stores in a app group and opens main app by custom URI, then main app reads and displays data.
Hope this gonna be useful for some else as well.
BTW I have implementation for iOS 18 + , please someone fix for lower versions as well and and feel free to create pull request.
Beta Was this translation helpful? Give feedback.
All reactions