|
|
@@ -1071,7 +1071,10 @@ public static class TalkingDataSDK
|
|
|
public static void ReportException(System.Exception exception)
|
|
|
{
|
|
|
if (talkingdataClass == null)
|
|
|
- return;
|
|
|
+ {
|
|
|
+ talkingdataClass = new AndroidJavaClass(TALKINGDATA_CLASS);
|
|
|
+ }
|
|
|
+
|
|
|
if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
@@ -1100,7 +1103,10 @@ public static class TalkingDataSDK
|
|
|
public static void SetReportUncaughtExceptions(bool enabled)
|
|
|
{
|
|
|
if (talkingdataClass == null)
|
|
|
- return;
|
|
|
+ {
|
|
|
+ talkingdataClass = new AndroidJavaClass(TALKINGDATA_CLASS);
|
|
|
+ }
|
|
|
+
|
|
|
try
|
|
|
{
|
|
|
talkingdataClass.CallStatic("setReportUncaughtExceptions", enabled);
|