Hello!
We are using App42API in Unity 5.4.0f3 (C#) to save user score and create / show leadebords. All works are good in Unity Editor, build for iOS (and on a device) and build for Windows. But Android version does not working.
Initialize API logic:
- User are tap on "Leaderbord" button
- We show special loading screen, where use this code from OnEnable():
if (Application.internetReachability == NetworkReachability.NotReachable)
{
errorLabel.gameObject.SetActive(true);
errorLabel.text = Localization.Get("check_connection");
closeButton.gameObject.SetActive(true);
}
else
{
loadLabel.gameObject.SetActive(true);
LeaderbordsManagerScript.Instance.APIStartInit();
StartCoroutine((CheckScore()));
}
public void APIStartInit()
{
App42API.Initialize(App42API.app42ApiKey,App42API.app42SecretKey);
if (!isUserChangeName)
GetUsersName();
isAPIInit = true;
}
- Code is stoped on this string: LeaderbordsManagerScript.Instance.APIStartInit();
- Only in Android version (courutine CheckScore() will not be started)
Who can tell why only in the Android version of API is not initialized?