iOS sharing extensions: an important market for Livecode?

David Bovill david.bovill at gmail.com
Sun Jun 28 11:30:02 EDT 2020


Not sure what people think, but for my part one of the main itches I have for creating mobile apps in Livecode is to figure out more advanced ways of processing data that is generated by all those mobile apps I have installed on my phone. So I REALLY want tone able to share from podcast apps, and browsers, and note / project management apps to a Livecode app I create on my mobile - get Livecode to  massage the data then save it somewhere useful.

But first I need to create that sharing extension - a test case would be to share a browser url from Chrome or Safari. Any ideas what I’m doing wrong?
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