Quantcast
Channel: Questions in topic: "xcode"
Viewing all articles
Browse latest Browse all 1047

Issue with integration into native iOS app

$
0
0
Hello, After following [this][1] tutorial (the-nerd.be) I managed to integrate a Unity app into a native iOS app. The problem I'm currently facing is when I try to go back from the Unity part to native iOS. For Android I solved this by doing something like: public void ReturnToNative() { #if UNITY_ANDROID AndroidJavaClass jc = new AndroidJavaClass ("com.unity3d.player.UnityPlayer"); AndroidJavaObject jo = jc.GetStatic ("currentActivity"); jo.Call ("goBack"); #endif #if UNITY_IOS Application.Quit(); #endif } The native Java method "goBack" basically stops and then finishes an activity that contains the Unity part. I know that for iOS the solution is not an Application.Quit(), I should use an iOS Plugin. So my question is, **what should this plugin do? How could I make it work?** I know how to create plugins, but I don't know what this particular plugin should contain. Any help / hint / direction is greatly appreciated!! [1]: https://the-nerd.be/2015/11/13/integrate-unity-5-in-a-native-ios-app-with-xcode-7/

Viewing all articles
Browse latest Browse all 1047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>