- Home /
iOS inter-app communication
We have an iOS app that contains a series of contexts such as text pages and video segments. We want another app to be able to request the display of a specific context. In researching this issue, I cam across iOS's Custom URL Schemes. Is this a good mechanism for the communication? What would be the best method of implementing this in a Unity app?
Did you get anywhere with this? I'm thinking along the same lines...
Yes and no. It turned out in the end the client only needed to bring up the app, they did not need to communicate anything into the Unity code. So for our purposes, we just had to add a URL scheme into the XCode project. I did not have to write the plug-in.
Answer by SolidSnake · Mar 21, 2013 at 12:23 PM
I guess you already solved your issue. AFAIK this is the only available way to communicate and send instructions "directly" between apps on iOS in the same device.
If you were to pass parameters you can simply agree on custom url and parameters between the apps and parse them inside application:openURL:sourceApplication:annotation:
delegate call. then based on that you can call UnitySendMessage method from the native side to your gameobject method with your instructions.
Your answer
Follow this Question
Related Questions
[2018.4.4f] iOS url scheme Problem 0 Answers
Crash while opening app with URL Scheme in iOS 8 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Cannot receive URL Scheme with App not running 1 Answer
Have problem using Application.OpenURL() opening tel URL scheme on iOS to call a number with symbols 1 Answer