Open in another iOS app

Is there a way to send data to another app?
I know iOS apps are sandboxed. But I have seen apps with a button that shows some sort of dialog, where data can be send to another app.
For instance, in mail you can open a PDF document in iBooks.
Also, I have seen ways of opening an address in Google Maps.

What I try to achieve is opening coordinates, or addresses in the user’s favorite navigation software. Mine is “TomTom”. But also Navigon, Apple Maps or Google Maps is used quite often.

For opening Maps, making a call, and other things involving bits of data, that is done with URL Schemes. Here’s one list: http://wiki.akosma.com/IPhone_URL_Schemes

Does anyone know if we can we create URL Schemes for our Xojo iOS apps?

[quote=190852:@Hal Gumbert]For opening Maps, making a call, and other things involving bits of data, that is done with URL Schemes. Here’s one list: http://wiki.akosma.com/IPhone_URL_Schemes
[/quote]

Awesome!, that helps a lot :slight_smile:

And that is a good point. It would be nice to have multiple apps I create being able to interact.

The answer is contained within a link in the wiki posted above. Yes you can.

Thanks Jason. Next time I will drink my coffee before heading to the forum. I should read before I write :wink:

No problem Edwin. I am happy to have found the answer because I needed to know as well. :slight_smile:

The page linked shows how to add the information to a plist file to include a custom URL scheme. Launching our apps from the URL should work fine.

Has anyone figured out how to use any information included in the URL link that launches our app.

[quote=191854:@Scott Siegrist]The page linked shows how to add the information to a plist file to include a custom URL scheme. Launching our apps from the URL should work fine.

Has anyone figured out how to use any information included in the URL link that launches our app.[/quote]

I haven’t been able to find the time to play with customized URL schemes. But I want to experiment with it. I would think you might be able to send data to another app in PostData. But that is a wild guess. I will have to look in to that

Has anyone been able to get URL Schemes working in a Xojo iOS app?

Hey Hal,

Have you seen the Xojo Blog Post on this subject yet?

I did. Thanks for pointing that out, but it’s for desktop apps, not iOS.

Well… It might actually work on OS-X as well.

I guess you mean iOS. There is no shell in iOS one can use to register.

And the App.HandleAppleEvent does not exist in Xojo iOS, as well as most everything else.

[quote=266405:@Michel Bujardet]I guess you mean iOS. There is no shell in iOS one can use to register.

And the App.HandleAppleEvent does not exist in Xojo iOS, as well as most everything else.[/quote]

That’s right. But it must be possible. Just not the “shell”-way… I mean, there are tons of apps out there that deal with these URI’s :confused:

Sure it must be possible. It simply is much more involved and that means declares. Given past history with Xojo iOS, I would not count on any feature request satisfaction before the next Gosplan…

Well, declares are not my biggest friends. Maybe some day.
I did found this on the Apple Developers section:
https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html

And the complete URL scheme tutorial:
http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

[quote=266460:@Edwin van den Akker]And the complete URL scheme tutorial:
http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html [/quote]

At first glance, this looks quite feasible with a Xojo iOS app, since we have full control of Info.plist.

So indeed your app could be called through Safari as described. It could be a great asset for a web app to be able to call helpers or specialized apps.

Thank you for the link.

No Michel… thank Google :wink: