iOS release - how to get Unity logs from user?

Hi All

We have spent over 100 hours to test the game with 3 different devices and after release the game, one of my friend found a critical bug that make the game cannot progress (but not crash).

I may have a Unity Debug.Log in this case but I don’t know how to get it from his mobile,
could anyone help?

Many Many Thanks
M40

After the release I don’t see any possibility to recover the logs from the foreign devices.

Something we’re using is:

Application.logMessageReceived += handleLogData
...
private void handleLogData(string message, string stackTrace, LogType type){
      if(type == LogType.Exception){
        try{
          string fullTrace = stackTrace + StackTraceUtility.ExtractStackTrace();
          sendExceptionToOurServer(message, type.ToString(), fullTrace);
        }catch{
          Debug.LogWarning("Error while trying to send exception: " + message);
        }
      }
    }

Where sendExceptionToOurServer is pushing the exception to an Errbit instance.

(But as already sad, I don’t think there is a possibility for app versions which are already published)

@DarkCooker You can use the Unity Crash Analytics (aka Game Performance Reporting) plugin. Have a lookt here.

We use it and it pretty simple to setup and it will report exceptions. So you could instead of simply Debug.Log it throw an exception and it should appear there.

If you want you can also use the ILogger interface and implement your own custom debug log. Never tried it before but it should work. In the interface you then gotta work out how to send the data to a server

Thanks guy, I decide to make a log pusher from the app and when catch some serious issue, it will
send out a string to server through www.

Thanks

Does this work if you have Script Call Optimization set to Fast but no Exceptions?

Sorry I don’t think so.