Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 8c4c97f

Browse files
committed
introduced StartHockeyManager(), removed gameViewLoaded flag, and make GameViewLoaded() empty.
1 parent f23f9fb commit 8c4c97f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Plugin/HockeyAppUnityIOS/HockeyAppUnity-Scripts/HockeyAppIOS.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class HockeyAppIOS : MonoBehaviour
1313
protected const string LOG_FILE_DIR = "/logs/";
1414
protected const int MAX_CHARS = 199800;
1515
private static HockeyAppIOS instance;
16-
private static bool gameViewLoaded;
1716

1817
public enum AuthenticatorType
1918
{
@@ -81,7 +80,7 @@ void Awake ()
8180
StartCoroutine(SendLogs(logFileDirs));
8281
}
8382
}
84-
GameViewLoaded(null);
83+
StartHockeyManager();
8584
#endif
8685
}
8786

@@ -106,12 +105,12 @@ void OnDisable ()
106105
}
107106

108107
void GameViewLoaded (string message)
108+
{
109+
}
110+
111+
void StartHockeyManager ()
109112
{
110113
#if (UNITY_IPHONE && !UNITY_EDITOR)
111-
if (gameViewLoaded) {
112-
return;
113-
}
114-
gameViewLoaded = true;
115114
string urlString = GetBaseURL();
116115
string authTypeString = GetAuthenticatorTypeString();
117116
HockeyApp_StartHockeyManager(appID, urlString, authTypeString, secret, updateAlert, userMetrics, autoUploadCrashes);

0 commit comments

Comments
 (0)