API can't be initialized in Android version

0 votes

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?

closed with the note: Found the problem in System.Security.Cryptography.HMAC.Initialize ()
asked Feb 15, 2017 in Android by Abony Team (10 points)
closed Feb 15, 2017 by Abony Team
I hope your query has been resolved, let me know if you are facing any issue.
I have the same issue, but I'm not sure how you fixed it.
Will you please share the code of    StartCoroutine((CheckScore()));
So that we will identify the problem.
Don't use strip byte code in Android version.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...