0

I was wondering if there is a way to send data to another app i.e. a custom URL scheme, without opening the app.

Pascal
  • 16,846
  • 4
  • 60
  • 69
hd143
  • 39
  • 2
  • 6

1 Answers1

2

You can launch another app using a URL-scheme (and even pass data to it through that URL), but you can't send data to another app installed on the same iPhone without launching it.

What are you trying to achieve? Maybe there is a different way to solve your problem.

Pascal
  • 16,846
  • 4
  • 60
  • 69
  • I am trying to make a URL scheme that will get the current URL of a page in safari and send that to my app while it is running in the background. – hd143 Jul 22 '11 at 04:58
  • That would have to be supported by Safari. You can only put data **into** an application via a URL-Scheme, to get data back that application has to implement your URL-Scheme. There is no way that I am aware of to get information from MobileSafari, you'll have to look into other possibilites. – Pascal Jul 22 '11 at 16:53