iOS sharing extension - anyone ever made one?

David Bovill david.bovill at gmail.com
Wed Sep 2 10:59:43 EDT 2020


I’m still having no joy figuring our how to make a sharing extension for a Livecode app. Has anyone ever done this?
On 25 Jun 2020, 21:05 +0100, David Bovill <david.bovill at gmail.com>, wrote:
> Having another go at creating an iOS Share extension in Livecode.
>
> Ben I had a go with the code snippets you supplied, but I’m not getting my app appearing in the list of apps available to share. I had a bit of a goose around and tried a bunch of options for the info.plist file without result - well in fact I’m getting the app launching with a black screen and then crashing if I use the following style recipe:
	> <key>NSExtension</key>
	>  <dict>
	>  <key>NSExtensionAttributes</key>
	>  <dict>
	>  <key>NSExtensionActivationRule</key>
	>  <string>TRUEPREDICATE</string>
	>  </dict>
	>  <key>NSExtensionMainStoryboard</key>
	>  <string>MainInterface</string>
	>  <key>NSExtensionPointIdentifier</key>
	>  <string>com.apple.share-services</string>
	>  </dict>
>
> This type of plist addition:
	> <key>CFBundleDocumentTypes</key>
> 	<array>
> 	<dict>
> 	<key>CFBundleTypeName</key>
> 	<string>Sound Garden</string>
> 	<key>CFBundleTypeRole</key>
> 	<string>Editor</string>
> 	<key>LSItemContentTypes</key>
> 	<array>
> 	<string>public.plain-text</string>
> 	</array>
> 	<key>LSHandlerRank</key>
> 	<string>Alternate</string>
> 	</dict>
> 	<dict>
> 	<key>CFBundleTypeName</key>
> 	<string>Audio</string>
> 	<key>CFBundleTypeRole</key>
> 	<string>Editor</string>
> 	<key>LSItemContentTypes</key>
> 	<array>
> 	<string>public.audio</string>
> 	</array>
> 	<key>LSHandlerRank</key>
> 	<string>Alternate</string>
> 	</dict>
> 	</array>
>
> Does not crash the app - but appears to do nothing? The following lesson appears related - http://lessons.livecode.com/m/4069/l/1069016-associating-a-file-type-file-extension-with-an-lc-ios-app and I note there are / were issues with iPhone X and this lesson.
>
> My basic question is how do I get an iOS app to work with as an iOS sharing extension such that in any app (say a web browser) where I select the share icon I can use my Livecode app as something that handles the share?
> On 20 Nov 2018, 18:40 +0000, Ben Rubinstein via use-livecode <use-livecode at lists.runrev.com>, wrote:
> > You need to do two things:
> >
> > - add code in your app to handle the "urlWakeUp" message, see the dictionary
> > entry and
> > http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes
> >
> > - add entries in the app's plist to tell the operating system what file types
> > your app can handle, see
> > https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685
> >
> > The latter is the bit you need to do for iOS - not sure what the Android
> > equivalent is.
> >
> >
> > On 19/11/2018 20:35, David Bovill via use-livecode wrote:
> > > How could I create the ability for Livecode mobile apps - say iOS but
> > > ideally also on Android) to add the ability for other apps to share to them?
> > >
> > > -
> > > https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html
> > >
> > > I can't find any thread here or in the forums?
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list