public void onUnexpectedErrorInStore(string message, bool alsoPush) { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore"); JSONObject eventJSON = null; try { eventJSON = new JSONObject(message); } catch {} if (eventJSON != null && eventJSON ["errorCode"] != null) { StoreEvents.OnUnexpectedStoreError((int)eventJSON ["errorCode"].n); } else { StoreEvents.OnUnexpectedErrorInStore(message); } if (alsoPush) { #if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR sep.PushEventSoomlaStoreInitialized(); #endif } }
public void onUnexpectedErrorInStore(string message, bool alsoPush) { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore"); StoreEvents.OnUnexpectedErrorInStore(message); if (alsoPush) { #if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR sep.PushEventSoomlaStoreInitialized(); #endif } }
/// <summary> /// Handles the <c>onItemPurchaseStarted</c> event, which is fired when an unexpected/unrecognized error /// occurs in store. /// </summary> /// <param name="message">Message that contains information about the error.</param> public void onUnexpectedErrorInStore(string message) { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore"); StoreEvents.OnUnexpectedErrorInStore(message); }